diff options
| author | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-07 05:23:58 +0000 |
|---|---|---|
| committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-07 05:23:58 +0000 |
| commit | d1e8f9a1e0e18d974cb20c2460e334bb03f5c36e (patch) | |
| tree | 65e37def6d540623a5ee9b173bf2fec98eec4424 /llvm/test/CodeGen | |
| parent | 8a6d0e091b7156ef12a3a69810319edf5e89950e (diff) | |
| download | bcm5719-llvm-d1e8f9a1e0e18d974cb20c2460e334bb03f5c36e.tar.gz bcm5719-llvm-d1e8f9a1e0e18d974cb20c2460e334bb03f5c36e.zip | |
Move the legalizer tests to the X86 directory because the test uses the x86
codegen. Thanks Galina.
llvm-svn: 132706
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/basic-promote-integers.ll (renamed from llvm/test/CodeGen/Generic/basic-promote-integers.ll) | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Generic/basic-promote-integers.ll b/llvm/test/CodeGen/X86/basic-promote-integers.ll index ed64d00c0e3..c80f2b03343 100644 --- a/llvm/test/CodeGen/Generic/basic-promote-integers.ll +++ b/llvm/test/CodeGen/X86/basic-promote-integers.ll @@ -82,10 +82,17 @@ define <4 x i64> @test_arith_9(<4 x i64> %A, <2 x i32> %B, <4 x i16> %C) { ret <4 x i64> %Y1 } - define <4 x i16> @test_arith_10(<4 x i64> %A, <2 x i32> %B, <4 x i32> %C) { %F = bitcast <2 x i32> %B to <4 x i16> %T = add <4 x i16> %F , <i16 0, i16 1, i16 2, i16 3> ret <4 x i16> %T } + +; Simple tests to check saving/loading from memory +define <4 x i16> @test_mem_0(<4 x i64> %A, <2 x i32> %B, <4 x i32> %C) { + %F = bitcast <2 x i32> %B to <4 x i16> + %T = add <4 x i16> %F , <i16 0, i16 1, i16 2, i16 3> + ret <4 x i16> %T +} + |

