From 1e471820b8df33845a661d58ecfd97b0838932f2 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Tue, 7 Jun 2011 05:23:58 +0000 Subject: [PATCH] Move the legalizer tests to the X86 directory because the test uses the x86 codegen. Thanks Galina. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132706 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/{Generic => X86}/basic-promote-integers.ll | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename test/CodeGen/{Generic => X86}/basic-promote-integers.ll (91%) diff --git a/test/CodeGen/Generic/basic-promote-integers.ll b/test/CodeGen/X86/basic-promote-integers.ll similarity index 91% rename from test/CodeGen/Generic/basic-promote-integers.ll rename to test/CodeGen/X86/basic-promote-integers.ll index ed64d00c0e3..c80f2b03343 100644 --- a/test/CodeGen/Generic/basic-promote-integers.ll +++ b/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 , 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 , + ret <4 x i16> %T +} + -- 2.34.1