diff options
author | Michael Liao <michael.liao@intel.com> | 2012-10-17 22:41:15 +0000 |
---|---|---|
committer | Michael Liao <michael.liao@intel.com> | 2012-10-17 22:41:15 +0000 |
commit | 4031e9018b071d25e5fc905aa38a943fcd9facb6 (patch) | |
tree | ef60c0036ba97ca6908d7b322cfb02e7b166f8aa /test/CodeGen | |
parent | 95a2bb4cdf48fb927c1c7c640012118c455b6727 (diff) | |
download | llvm-4031e9018b071d25e5fc905aa38a943fcd9facb6.tar.gz llvm-4031e9018b071d25e5fc905aa38a943fcd9facb6.tar.bz2 llvm-4031e9018b071d25e5fc905aa38a943fcd9facb6.tar.xz |
Revert r166049
- In general, it's unsafe for this transformation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/trunc-fp2int.ll | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/CodeGen/X86/trunc-fp2int.ll b/test/CodeGen/X86/trunc-fp2int.ll deleted file mode 100644 index 792af16c95..0000000000 --- a/test/CodeGen/X86/trunc-fp2int.ll +++ /dev/null @@ -1,18 +0,0 @@ -; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=corei7 | FileCheck %s - -define <4 x i8> @bar(<4 x float> %in) nounwind readnone alwaysinline { - %1 = fptoui <4 x float> %in to <4 x i8> - ret <4 x i8> %1 -; CHECK: bar -; CHECK: cvttps2dq -} -define <4 x i8> @foo(<4 x float> %in) nounwind readnone alwaysinline { - %1 = fptoui <4 x float> %in to <4 x i32> - %2 = trunc <4 x i32> %1 to <4 x i16> - %3 = shufflevector <4 x i16> %2, <4 x i16> undef, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> - %4 = trunc <8 x i16> %3 to <8 x i8> - %5 = shufflevector <8 x i8> %4, <8 x i8> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3> - ret <4 x i8> %5 -; CHECK: foo -; CHECK: cvttps2dq -} |