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/testconstants.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/testconstants.ll')
-rw-r--r-- | test/Feature/testconstants.ll | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/test/Feature/testconstants.ll b/test/Feature/testconstants.ll index 7d9e119..6810f3d 100644 --- a/test/Feature/testconstants.ll +++ b/test/Feature/testconstants.ll @@ -1,33 +1,29 @@ -; 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 -%somestr = constant [11x sbyte] c"hello world" -%array = constant [2 x int] [ int 12, int 52 ] - constant { int, int } { int 4, int 3 } +@somestr = constant [11 x i8] c"hello world" ; <[11 x i8]*> [#uses=1] +@array = constant [2 x i32] [ i32 12, i32 52 ] ; <[2 x i32]*> [#uses=1] +constant { i32, i32 } { i32 4, i32 3 } ; <{ i32, i32 }*>:0 [#uses=0] -implementation - -[2 x int]* %testfunction(int %i0, int %j0) -begin - ret [2x int]* %array -end +define [2 x i32]* @testfunction(i32 %i0, i32 %j0) { + ret [2 x i32]* @array +} -sbyte* %otherfunc(int, double) -begin - %somestr = getelementptr [11x sbyte]* %somestr, long 0, long 0 - ret sbyte* %somestr -end +define i8* @otherfunc(i32, double) { + %somestr = getelementptr [11 x i8]* @somestr, i64 0, i64 0 ; <i8*> [#uses=1] + ret i8* %somestr +} -sbyte* %yetanotherfunc(int, double) -begin - ret sbyte* null ; Test null -end +define i8* @yetanotherfunc(i32, double) { + ret i8* null +} -uint %negativeUnsigned() { - ret uint -1 +define i32 @negativeUnsigned() { + ret i32 -1 } -int %largeSigned() { - ret int 3900000000 +define i32 @largeSigned() { + ret i32 -394967296 } + |