diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-01 07:38:40 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-01 07:38:40 +0000 |
commit | 9bc243b2517f4f1aef3319ba01ea6f0788e87cb6 (patch) | |
tree | e3b7a85489213ca435df8fdecb7a12601e2f00ac /test/Feature/testlogical.ll | |
parent | e5101bf52c8c9b96e072c10f1a141ef021971137 (diff) | |
download | external_llvm-9bc243b2517f4f1aef3319ba01ea6f0788e87cb6.zip external_llvm-9bc243b2517f4f1aef3319ba01ea6f0788e87cb6.tar.gz external_llvm-9bc243b2517f4f1aef3319ba01ea6f0788e87cb6.tar.bz2 |
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/testlogical.ll')
-rw-r--r-- | test/Feature/testlogical.ll | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/test/Feature/testlogical.ll b/test/Feature/testlogical.ll index 887699a..a064869 100644 --- a/test/Feature/testlogical.ll +++ b/test/Feature/testlogical.ll @@ -1,14 +1,11 @@ -; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll +; RUN: llvm-as < %s | llvm-dis > %t1.ll ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll ; RUN: diff %t1.ll %t2.ll -implementation - -int "simpleAdd"(int %i0, int %j0) -begin - %t1 = xor int %i0, %j0 - %t2 = or int %i0, %j0 - %t3 = and int %t1, %t2 - ret int %t3 -end +define i32 @simpleAdd(i32 %i0, i32 %j0) { + %t1 = xor i32 %i0, %j0 ; <i32> [#uses=1] + %t2 = or i32 %i0, %j0 ; <i32> [#uses=1] + %t3 = and i32 %t1, %t2 ; <i32> [#uses=1] + ret i32 %t3 +} |