diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-01-10 23:09:53 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-01-10 23:09:53 +0000 |
commit | eab30279f7017db1bcbe38991b367d86862643ad (patch) | |
tree | 5f6a5c3d1541405debe16b23376ab4634f99c257 | |
parent | 9ffaa6a8a916d88c7ffde6beea7faee1b93ad945 (diff) | |
download | llvm-eab30279f7017db1bcbe38991b367d86862643ad.tar.gz llvm-eab30279f7017db1bcbe38991b367d86862643ad.tar.bz2 llvm-eab30279f7017db1bcbe38991b367d86862643ad.tar.xz |
Add test case for r147881.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147891 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/mcinst-avx-lowering.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/X86/mcinst-avx-lowering.ll b/test/CodeGen/X86/mcinst-avx-lowering.ll new file mode 100644 index 0000000000..41f96e8856 --- /dev/null +++ b/test/CodeGen/X86/mcinst-avx-lowering.ll @@ -0,0 +1,19 @@ +; RUN: llc -mtriple=x86_64-apple-macosx10 -mattr=avx -show-mc-encoding < %s | FileCheck %s + +define i64 @t1(double %d_ivar) nounwind uwtable ssp { +entry: +; CHECK: t1 + %0 = bitcast double %d_ivar to i64 +; CHECK: vmovd +; CHECK: encoding: [0xc4,0xe1,0xf9,0x7e,0xc0] + ret i64 %0 +} + +define double @t2(i64 %d_ivar) nounwind uwtable ssp { +entry: +; CHECK: t2 + %0 = bitcast i64 %d_ivar to double +; CHECK: vmovd +; CHECK: encoding: [0xc4,0xe1,0xf9,0x6e,0xc7] + ret double %0 +} |