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