1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s 2 3 define i32 @foo(<4 x float> %bar) nounwind { 4 entry: 5 ; CHECK: call i32 @llvm.x86.sse41.ptestc(<2 x i64> 6 %res1 = call i32 @llvm.x86.sse41.ptestc(<4 x float> %bar, <4 x float> %bar) 7 ; CHECK: call i32 @llvm.x86.sse41.ptestz(<2 x i64> 8 %res2 = call i32 @llvm.x86.sse41.ptestz(<4 x float> %bar, <4 x float> %bar) 9 ; CHECK: call i32 @llvm.x86.sse41.ptestnzc(<2 x i64> 10 %res3 = call i32 @llvm.x86.sse41.ptestnzc(<4 x float> %bar, <4 x float> %bar) 11 %add1 = add i32 %res1, %res2 12 %add2 = add i32 %add1, %res2 13 ret i32 %add2 14 } 15 16 ; CHECK: declare i32 @llvm.x86.sse41.ptestc(<2 x i64>, <2 x i64>) #1 17 ; CHECK: declare i32 @llvm.x86.sse41.ptestz(<2 x i64>, <2 x i64>) #1 18 ; CHECK: declare i32 @llvm.x86.sse41.ptestnzc(<2 x i64>, <2 x i64>) #1 19 20 declare i32 @llvm.x86.sse41.ptestc(<4 x float>, <4 x float>) nounwind readnone 21 declare i32 @llvm.x86.sse41.ptestz(<4 x float>, <4 x float>) nounwind readnone 22 declare i32 @llvm.x86.sse41.ptestnzc(<4 x float>, <4 x float>) nounwind readnone 23 24 ; CHECK: attributes #0 = { nounwind } 25 ; CHECK: attributes #1 = { nounwind readnone } 26