mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
36a0947820
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81290 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
385 B
LLVM
16 lines
385 B
LLVM
; RUN: llc < %s -march=x86 -mattr=+sse2 | grep cvttpd2pi | count 1
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 | grep cvtpi2pd | count 1
|
|
; PR2687
|
|
|
|
define <2 x double> @a(<2 x i32> %x) nounwind {
|
|
entry:
|
|
%y = sitofp <2 x i32> %x to <2 x double>
|
|
ret <2 x double> %y
|
|
}
|
|
|
|
define <2 x i32> @b(<2 x double> %x) nounwind {
|
|
entry:
|
|
%y = fptosi <2 x double> %x to <2 x i32>
|
|
ret <2 x i32> %y
|
|
}
|