xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/bicZext.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -o - | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; ModuleID = 'bic.c'
3*9880d681SAndroid Build Coastguard Workertarget triple = "thumbv7-apple-ios3.0.0"
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine zeroext i16 @foo16(i16 zeroext %f) nounwind readnone optsize ssp {
6*9880d681SAndroid Build Coastguard Workerentry:
7*9880d681SAndroid Build Coastguard Worker  ; CHECK: .thumb_func	_foo16
8*9880d681SAndroid Build Coastguard Worker  ; CHECK: {{bic[^#]*#3}}
9*9880d681SAndroid Build Coastguard Worker  %and = and i16 %f, -4
10*9880d681SAndroid Build Coastguard Worker  ret i16 %and
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Workerdefine i32 @foo32(i32 %f) nounwind readnone optsize ssp {
14*9880d681SAndroid Build Coastguard Workerentry:
15*9880d681SAndroid Build Coastguard Worker  ; CHECK: .thumb_func	_foo32
16*9880d681SAndroid Build Coastguard Worker  ; CHECK: {{bic[^#]*#3}}
17*9880d681SAndroid Build Coastguard Worker  %and = and i32 %f, -4
18*9880d681SAndroid Build Coastguard Worker  ret i32 %and
19*9880d681SAndroid Build Coastguard Worker}
20