diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-11 21:58:19 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-11 21:58:19 +0000 |
| commit | f0d26d4b7437d6d9215163cac49e2ca50ee9b9e1 (patch) | |
| tree | a1010e6e1d5cba4db948c7a66af0ad279e1ad835 | |
| parent | 9dd13ab2025877a9c9d77f624f4d68fc5d86d26a (diff) | |
| download | bcm5719-llvm-f0d26d4b7437d6d9215163cac49e2ca50ee9b9e1.tar.gz bcm5719-llvm-f0d26d4b7437d6d9215163cac49e2ca50ee9b9e1.zip | |
reduce this to a sensible testcase.
llvm-svn: 93189
| -rw-r--r-- | llvm/test/CodeGen/X86/2010-01-07-UAMemFeature.ll | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/llvm/test/CodeGen/X86/2010-01-07-UAMemFeature.ll b/llvm/test/CodeGen/X86/2010-01-07-UAMemFeature.ll index 9c67a4651dc..55abe6a8f00 100644 --- a/llvm/test/CodeGen/X86/2010-01-07-UAMemFeature.ll +++ b/llvm/test/CodeGen/X86/2010-01-07-UAMemFeature.ll @@ -1,24 +1,11 @@ ; RUN: llc -mattr=vector-unaligned-mem < %s | FileCheck %s -; CHECK: addps{{[ \t]+}}( +; CHECK: addps ( target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" target triple = "x86_64-unknown-linux-gnu" -define i32 @foo(i32 %n1, float* %A2, float* %B3, float* %C4) { -"file loop.c, line 1, bb1": ; srcLine 1 - %"$LCS_4" = alloca i64, align 8 ; <i64*> [#uses=5] ; [oox.86 : sln.1] - %"$LCS_5" = alloca i64, align 8 ; <i64*> [#uses=5] ; [oox.87 : sln.1] - %"$LCS_6" = alloca i64, align 8 ; <i64*> [#uses=5] ; [oox.88 : sln.1] - - %r128 = load i64* %"$LCS_4", align 8 ; <i64> [#uses=1] ; [oox.192 : sln.6] - %r129 = inttoptr i64 %r128 to <4 x float>* ; <<4 x float>*> [#uses=1] ; [oox.192 : sln.6] - %r130 = load <4 x float>* %r129, align 4 ; <<4 x float>> [#uses=1] ; [oox.192 : sln.6] - %r131 = load i64* %"$LCS_5", align 8 ; <i64> [#uses=1] ; [oox.192 : sln.6] - %r132 = inttoptr i64 %r131 to <4 x float>* ; <<4 x float>*> [#uses=1] ; [oox.192 : sln.6] - %r133 = load <4 x float>* %r132, align 4 ; <<4 x float>> [#uses=1] ; [oox.192 : sln.6] - %r134 = add <4 x float> %r130, %r133 ; <<4 x float>> [#uses=1] ; [oox.192 : sln.6] - %r135 = load i64* %"$LCS_6", align 8 ; <i64> [#uses=1] ; [oox.192 : sln.6] - %r136 = inttoptr i64 %r135 to <4 x float>* ; <<4 x float>*> [#uses=1] ; [oox.192 : sln.6] - store <4 x float> %r134, <4 x float>* %r136, align 4 ; [oox.192 : sln.6] - ret i32 0 ; [oox.189 : sln.10] +define <4 x float> @foo(<4 x float>* %P, <4 x float> %In) nounwind { + %A = load <4 x float>* %P, align 4 + %B = add <4 x float> %A, %In + ret <4 x float> %B } |

