summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2010-01-07-UAMemFeature.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-11 21:58:19 +0000
committerChris Lattner <sabre@nondot.org>2010-01-11 21:58:19 +0000
commitc31b0fc31f69435eeb6cd456158239e275f52f31 (patch)
treeea39f69c14e19d16255b562e5158a14c8bc27317 /test/CodeGen/X86/2010-01-07-UAMemFeature.ll
parent67df1a1d64e13ccdd04a19816d439a399e136965 (diff)
downloadllvm-c31b0fc31f69435eeb6cd456158239e275f52f31.tar.gz
llvm-c31b0fc31f69435eeb6cd456158239e275f52f31.tar.bz2
llvm-c31b0fc31f69435eeb6cd456158239e275f52f31.tar.xz
reduce this to a sensible testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2010-01-07-UAMemFeature.ll')
-rw-r--r--test/CodeGen/X86/2010-01-07-UAMemFeature.ll23
1 files changed, 5 insertions, 18 deletions
diff --git a/test/CodeGen/X86/2010-01-07-UAMemFeature.ll b/test/CodeGen/X86/2010-01-07-UAMemFeature.ll
index 9c67a4651d..55abe6a8f0 100644
--- a/test/CodeGen/X86/2010-01-07-UAMemFeature.ll
+++ b/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
}