diff --git a/test/Feature/basictest.ll b/test/Feature/basictest.ll index 0a2fd3e9518..ac429fa7e0d 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 1465670913b..46f510c5a8b 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 bbfe1f6edd3..4296b2d427a 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 755c04dbcab..a844fd09903 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 d937387a58c..58f99646da9 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