diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-02-21 07:42:26 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-02-21 07:42:26 +0000 |
commit | 33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e (patch) | |
tree | c8a69f1be3db80d136ec9dcc8e41d9d5affd35ad /test/CodeGen/X86/store_op_load_fold.ll | |
parent | 7c1687c196e8dc89a4722e0463965f0b0f5f399c (diff) | |
download | llvm-33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e.tar.gz llvm-33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e.tar.bz2 llvm-33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e.tar.xz |
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/store_op_load_fold.ll')
-rw-r--r-- | test/CodeGen/X86/store_op_load_fold.ll | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/CodeGen/X86/store_op_load_fold.ll b/test/CodeGen/X86/store_op_load_fold.ll index 9c1c7b81fc..acef174638 100644 --- a/test/CodeGen/X86/store_op_load_fold.ll +++ b/test/CodeGen/X86/store_op_load_fold.ll @@ -1,12 +1,13 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep mov +; RUN: llvm-as < %s | llc -march=x86 | not grep mov ; ; Test the add and load are folded into the store instruction. -%X = internal global short 0 +@X = internal global i16 0 ; <i16*> [#uses=2] -void %foo() { - %tmp.0 = load short* %X - %tmp.3 = add short %tmp.0, 329 - store short %tmp.3, short* %X - ret void +define void @foo() { + %tmp.0 = load i16* @X ; <i16> [#uses=1] + %tmp.3 = add i16 %tmp.0, 329 ; <i16> [#uses=1] + store i16 %tmp.3, i16* @X + ret void } + |