projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[X86] Don't pass a scale value of 0 to scatter/gather intrinsics. This causes the...
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
bitcast2.ll
diff --git
a/test/CodeGen/X86/bitcast2.ll
b/test/CodeGen/X86/bitcast2.ll
index 71ecedf8f1ed4c6dec9d6409d1be02f7d4fc6609..12aa863a37a15bbfcb57d54be13c6930ed0dd899 100644
(file)
--- a/
test/CodeGen/X86/bitcast2.ll
+++ b/
test/CodeGen/X86/bitcast2.ll
@@
-1,31
+1,13
@@
-; RUN: llc < %s -march=x86-64
| FileCheck %s
-; RUN: llc < %s -march=x86-64 | not grep rsp
+; RUN: llc < %s -march=x86-64
-mattr=-avx | grep movd | count 2
+; RUN: llc < %s -march=x86-64
-mattr=-avx
| not grep rsp
define i64 @test1(double %A) {
define i64 @test1(double %A) {
-; CHECK: test1
-; CHECK: movq
%B = bitcast double %A to i64
ret i64 %B
}
define double @test2(i64 %A) {
%B = bitcast double %A to i64
ret i64 %B
}
define double @test2(i64 %A) {
-; CHECK: test2
-; CHECK: movq
%B = bitcast i64 %A to double
ret double %B
}
%B = bitcast i64 %A to double
ret double %B
}
-define i32 @test3(float %A) {
-; CHECK: test3
-; CHECK: movd
- %B = bitcast float %A to i32
- ret i32 %B
-}
-
-define float @test4(i32 %A) {
-; CHECK: test4
-; CHECK: movd
- %B = bitcast i32 %A to float
- ret float %B
-}
-