2012-06-10 18:42:51 +00:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
2014-08-19 21:08:27 +00:00
|
|
|
; RUN: verify-uselistorder < %s
|
2012-06-10 18:42:51 +00:00
|
|
|
|
|
|
|
define i32 @foo(<2 x i64> %bar) nounwind {
|
|
|
|
entry:
|
|
|
|
; CHECK: call i32 @llvm.x86.sse41.ptestc(<2 x i64>
|
|
|
|
%res1 = call i32 @llvm.x86.sse41.ptestc(<2 x i64> %bar, <2 x i64> %bar)
|
|
|
|
; CHECK: call i32 @llvm.x86.sse41.ptestz(<2 x i64>
|
|
|
|
%res2 = call i32 @llvm.x86.sse41.ptestz(<2 x i64> %bar, <2 x i64> %bar)
|
|
|
|
; CHECK: call i32 @llvm.x86.sse41.ptestnzc(<2 x i64>
|
|
|
|
%res3 = call i32 @llvm.x86.sse41.ptestnzc(<2 x i64> %bar, <2 x i64> %bar)
|
|
|
|
%add1 = add i32 %res1, %res2
|
|
|
|
%add2 = add i32 %add1, %res2
|
|
|
|
ret i32 %add2
|
|
|
|
}
|
|
|
|
|
2013-02-20 07:21:42 +00:00
|
|
|
; CHECK: declare i32 @llvm.x86.sse41.ptestc(<2 x i64>, <2 x i64>) #1
|
|
|
|
; CHECK: declare i32 @llvm.x86.sse41.ptestz(<2 x i64>, <2 x i64>) #1
|
|
|
|
; CHECK: declare i32 @llvm.x86.sse41.ptestnzc(<2 x i64>, <2 x i64>) #1
|
2012-06-10 18:42:51 +00:00
|
|
|
|
|
|
|
declare i32 @llvm.x86.sse41.ptestc(<2 x i64>, <2 x i64>) nounwind readnone
|
|
|
|
declare i32 @llvm.x86.sse41.ptestz(<2 x i64>, <2 x i64>) nounwind readnone
|
|
|
|
declare i32 @llvm.x86.sse41.ptestnzc(<2 x i64>, <2 x i64>) nounwind readnone
|
2013-02-20 07:21:42 +00:00
|
|
|
|
|
|
|
; CHECK: attributes #0 = { nounwind }
|
|
|
|
; CHECK: attributes #1 = { nounwind readnone }
|