diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-03 01:48:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-03 01:48:04 +0000 |
commit | fe5e584cd9df2e1c4c593137d0b5ab696e2d7e36 (patch) | |
tree | 17f6ba366e7cc861329bcf1534aedb0b40c5423a /test | |
parent | b00c582b6d40e6b9ff2d1ed4f5eaf7930e792ace (diff) | |
download | external_llvm-fe5e584cd9df2e1c4c593137d0b5ab696e2d7e36.zip external_llvm-fe5e584cd9df2e1c4c593137d0b5ab696e2d7e36.tar.gz external_llvm-fe5e584cd9df2e1c4c593137d0b5ab696e2d7e36.tar.bz2 |
Modify testcases for new LLVM const syntax
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Feature/basictest.ll | 10 | ||||
-rw-r--r-- | test/Feature/forwardreftest.ll | 4 | ||||
-rw-r--r-- | test/opttest.ll | 18 | ||||
-rw-r--r-- | test/sccptest.ll | 6 | ||||
-rw-r--r-- | test/select.ll | 4 |
5 files changed, 21 insertions, 21 deletions
diff --git a/test/Feature/basictest.ll b/test/Feature/basictest.ll index 0a2fd3e..ac429fa 100644 --- a/test/Feature/basictest.ll +++ b/test/Feature/basictest.ll @@ -1,7 +1,7 @@ implementation void "test function"(int %i0, int %j0) - %x = int 1 + %x = const int 1 begin Startup: ; Basic block #0 %i1 = add int %i0, 1 @@ -28,8 +28,8 @@ end ; format looks anyways (except for negative vs positive offsets)... ; void "void"(int, int) ; Def %0, %1 - int 0 ; Def 2 - int -4 ; Def 3 + const int 0 ; Def 2 + const int -4 ; Def 3 begin add int %0, %1 ; Def 4 sub int %4, %3 ; Def 5 @@ -44,8 +44,8 @@ end ; This function always returns zero int "zarro"() - uint 4000000000 ; Def 0 - uint plane - int 0 ; Def 0 - int plane + const uint 4000000000 ; Def 0 - uint plane + const int 0 ; Def 0 - int plane begin Startup: ret int %0 diff --git a/test/Feature/forwardreftest.ll b/test/Feature/forwardreftest.ll index 1465670..46f510c 100644 --- a/test/Feature/forwardreftest.ll +++ b/test/Feature/forwardreftest.ll @@ -7,8 +7,8 @@ implementation ; This function always returns zero int "zarro"(int %Func) - %q = uint 4000000000 - %p = int 0 + %q = const uint 4000000000 + %p = const int 0 begin Startup: add int %p, 10 diff --git a/test/opttest.ll b/test/opttest.ll index bbfe1f6..4296b2d 100644 --- a/test/opttest.ll +++ b/test/opttest.ll @@ -1,18 +1,18 @@ - long 12 + const long 12 implementation ulong "const removal"() - long 12345 - %q = uint 4000000000 ; Def 0 - uint plane - ulong 123 ; Def 0 - ulong plane - ulong 4000000000000 ; Def 1 - ulong plane + const long 12345 + %q = const uint 4000000000 ; Def %q - uint plane + const ulong 123 ; Def 0 - ulong plane + const ulong 4000000000000 ; Def 1 - ulong plane begin ret ulong %1 end void "dce #1"() - int 0 + const int 0 begin ret void @@ -31,9 +31,9 @@ TestName: end void "const prop #1"() - %x = int 0 ; Def %x - int plane - int 0 ; Def 0 - int plane - bool false + %x = const int 0 ; Def %x - int plane + const int 0 ; Def 0 - int plane + const bool false begin Startup: %x = seteq int %0, %x diff --git a/test/sccptest.ll b/test/sccptest.ll index 755c04d..a844fd0 100644 --- a/test/sccptest.ll +++ b/test/sccptest.ll @@ -1,9 +1,9 @@ implementation int "test function"(int %i0, int %j0) - %i1 = int 1 - %j1 = int 1 - %k1 = int 0 + %i1 = const int 1 + %j1 = const int 1 + %k1 = const int 0 begin BB1: br label %BB2 diff --git a/test/select.ll b/test/select.ll index d937387..58f9964 100644 --- a/test/select.ll +++ b/test/select.ll @@ -42,8 +42,8 @@ end ; 2. cannot be folded because result of comparison is used twice ; void "testbool"(int, int) ; Def %0, %1 - int 0 ; Def 2 - int -4 ; Def 3 + const int 0 ; Def 2 + const int -4 ; Def 3 begin add int %0, %1 ; Def 4 sub int %4, %3 ; Def 5 |