source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Bitcode/ptest-old.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

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