diff options
Diffstat (limited to 'test/CodeGen/CellSPU')
-rw-r--r-- | test/CodeGen/CellSPU/and_ops.ll | 12 | ||||
-rw-r--r-- | test/CodeGen/CellSPU/eqv.ll | 18 | ||||
-rw-r--r-- | test/CodeGen/CellSPU/mul-with-overflow.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/CellSPU/nand.ll | 16 | ||||
-rw-r--r-- | test/CodeGen/CellSPU/or_ops.ll | 12 | ||||
-rw-r--r-- | test/CodeGen/CellSPU/shift_ops.ll | 48 | ||||
-rw-r--r-- | test/CodeGen/CellSPU/struct_1.ll | 12 |
7 files changed, 61 insertions, 61 deletions
diff --git a/test/CodeGen/CellSPU/and_ops.ll b/test/CodeGen/CellSPU/and_ops.ll index 139e97b967..72478a1ca6 100644 --- a/test/CodeGen/CellSPU/and_ops.ll +++ b/test/CodeGen/CellSPU/and_ops.ll @@ -201,12 +201,12 @@ define <4 x i32> @andi_v4i32_4(<4 x i32> %in) { ret <4 x i32> %tmp2 } -define i32 @andi_u32(i32 zeroext %in) zeroext { +define zeroext i32 @andi_u32(i32 zeroext %in) { %tmp37 = and i32 %in, 37 ret i32 %tmp37 } -define i32 @andi_i32(i32 signext %in) signext { +define signext i32 @andi_i32(i32 signext %in) { %tmp38 = and i32 %in, 37 ret i32 %tmp38 } @@ -241,12 +241,12 @@ define <8 x i16> @andhi_v8i16_4(<8 x i16> %in) { ret <8 x i16> %tmp2 } -define i16 @andhi_u16(i16 zeroext %in) zeroext { +define zeroext i16 @andhi_u16(i16 zeroext %in) { %tmp37 = and i16 %in, 37 ; <i16> [#uses=1] ret i16 %tmp37 } -define i16 @andhi_i16(i16 signext %in) signext { +define signext i16 @andhi_i16(i16 signext %in) { %tmp38 = and i16 %in, 37 ; <i16> [#uses=1] ret i16 %tmp38 } @@ -260,13 +260,13 @@ define <16 x i8> @and_v16i8(<16 x i8> %in) { ret <16 x i8> %tmp2 } -define i8 @and_u8(i8 zeroext %in) zeroext { +define zeroext i8 @and_u8(i8 zeroext %in) { ; ANDBI generated: %tmp37 = and i8 %in, 37 ret i8 %tmp37 } -define i8 @and_sext8(i8 signext %in) signext { +define signext i8 @and_sext8(i8 signext %in) { ; ANDBI generated %tmp38 = and i8 %in, 37 ret i8 %tmp38 diff --git a/test/CodeGen/CellSPU/eqv.ll b/test/CodeGen/CellSPU/eqv.ll index 22c8c3bff9..79676814f2 100644 --- a/test/CodeGen/CellSPU/eqv.ll +++ b/test/CodeGen/CellSPU/eqv.ll @@ -79,7 +79,7 @@ define i32 @equiv_i32_5(i32 %arg1, i32 %arg2) { ret i32 %C } -define i16 @equiv_i16_1(i16 signext %arg1, i16 signext %arg2) signext { +define signext i16 @equiv_i16_1(i16 signext %arg1, i16 signext %arg2) { %A = and i16 %arg1, %arg2 ; <i16> [#uses=1] %B = or i16 %arg1, %arg2 ; <i16> [#uses=1] %Bnot = xor i16 %B, -1 ; <i16> [#uses=1] @@ -87,7 +87,7 @@ define i16 @equiv_i16_1(i16 signext %arg1, i16 signext %arg2) signext { ret i16 %C } -define i16 @equiv_i16_2(i16 signext %arg1, i16 signext %arg2) signext { +define signext i16 @equiv_i16_2(i16 signext %arg1, i16 signext %arg2) { %B = or i16 %arg1, %arg2 ; <i16> [#uses=1] %Bnot = xor i16 %B, -1 ; <i16> [#uses=1] %A = and i16 %arg1, %arg2 ; <i16> [#uses=1] @@ -95,7 +95,7 @@ define i16 @equiv_i16_2(i16 signext %arg1, i16 signext %arg2) signext { ret i16 %C } -define i16 @equiv_i16_3(i16 signext %arg1, i16 signext %arg2) signext { +define signext i16 @equiv_i16_3(i16 signext %arg1, i16 signext %arg2) { %B = or i16 %arg1, %arg2 ; <i16> [#uses=1] %A = and i16 %arg1, %arg2 ; <i16> [#uses=1] %Bnot = xor i16 %B, -1 ; <i16> [#uses=1] @@ -103,7 +103,7 @@ define i16 @equiv_i16_3(i16 signext %arg1, i16 signext %arg2) signext { ret i16 %C } -define i8 @equiv_i8_1(i8 signext %arg1, i8 signext %arg2) signext { +define signext i8 @equiv_i8_1(i8 signext %arg1, i8 signext %arg2) { %A = and i8 %arg1, %arg2 ; <i8> [#uses=1] %B = or i8 %arg1, %arg2 ; <i8> [#uses=1] %Bnot = xor i8 %B, -1 ; <i8> [#uses=1] @@ -111,7 +111,7 @@ define i8 @equiv_i8_1(i8 signext %arg1, i8 signext %arg2) signext { ret i8 %C } -define i8 @equiv_i8_2(i8 signext %arg1, i8 signext %arg2) signext { +define signext i8 @equiv_i8_2(i8 signext %arg1, i8 signext %arg2) { %B = or i8 %arg1, %arg2 ; <i8> [#uses=1] %Bnot = xor i8 %B, -1 ; <i8> [#uses=1] %A = and i8 %arg1, %arg2 ; <i8> [#uses=1] @@ -119,7 +119,7 @@ define i8 @equiv_i8_2(i8 signext %arg1, i8 signext %arg2) signext { ret i8 %C } -define i8 @equiv_i8_3(i8 signext %arg1, i8 signext %arg2) signext { +define signext i8 @equiv_i8_3(i8 signext %arg1, i8 signext %arg2) { %B = or i8 %arg1, %arg2 ; <i8> [#uses=1] %A = and i8 %arg1, %arg2 ; <i8> [#uses=1] %Bnot = xor i8 %B, -1 ; <i8> [#uses=1] @@ -127,7 +127,7 @@ define i8 @equiv_i8_3(i8 signext %arg1, i8 signext %arg2) signext { ret i8 %C } -define i8 @equiv_u8_1(i8 zeroext %arg1, i8 zeroext %arg2) zeroext { +define zeroext i8 @equiv_u8_1(i8 zeroext %arg1, i8 zeroext %arg2) { %A = and i8 %arg1, %arg2 ; <i8> [#uses=1] %B = or i8 %arg1, %arg2 ; <i8> [#uses=1] %Bnot = xor i8 %B, -1 ; <i8> [#uses=1] @@ -135,7 +135,7 @@ define i8 @equiv_u8_1(i8 zeroext %arg1, i8 zeroext %arg2) zeroext { ret i8 %C } -define i8 @equiv_u8_2(i8 zeroext %arg1, i8 zeroext %arg2) zeroext { +define zeroext i8 @equiv_u8_2(i8 zeroext %arg1, i8 zeroext %arg2) { %B = or i8 %arg1, %arg2 ; <i8> [#uses=1] %Bnot = xor i8 %B, -1 ; <i8> [#uses=1] %A = and i8 %arg1, %arg2 ; <i8> [#uses=1] @@ -143,7 +143,7 @@ define i8 @equiv_u8_2(i8 zeroext %arg1, i8 zeroext %arg2) zeroext { ret i8 %C } -define i8 @equiv_u8_3(i8 zeroext %arg1, i8 zeroext %arg2) zeroext { +define zeroext i8 @equiv_u8_3(i8 zeroext %arg1, i8 zeroext %arg2) { %B = or i8 %arg1, %arg2 ; <i8> [#uses=1] %A = and i8 %arg1, %arg2 ; <i8> [#uses=1] %Bnot = xor i8 %B, -1 ; <i8> [#uses=1] diff --git a/test/CodeGen/CellSPU/mul-with-overflow.ll b/test/CodeGen/CellSPU/mul-with-overflow.ll index d15da12649..c04e69e3e1 100644 --- a/test/CodeGen/CellSPU/mul-with-overflow.ll +++ b/test/CodeGen/CellSPU/mul-with-overflow.ll @@ -1,14 +1,14 @@ ; RUN: llc < %s -march=cellspu declare {i16, i1} @llvm.smul.with.overflow.i16(i16 %a, i16 %b) -define i1 @a(i16 %x) zeroext nounwind { +define zeroext i1 @a(i16 %x) nounwind { %res = call {i16, i1} @llvm.smul.with.overflow.i16(i16 %x, i16 3) %obil = extractvalue {i16, i1} %res, 1 ret i1 %obil } declare {i16, i1} @llvm.umul.with.overflow.i16(i16 %a, i16 %b) -define i1 @b(i16 %x) zeroext nounwind { +define zeroext i1 @b(i16 %x) nounwind { %res = call {i16, i1} @llvm.umul.with.overflow.i16(i16 %x, i16 3) %obil = extractvalue {i16, i1} %res, 1 ret i1 %obil diff --git a/test/CodeGen/CellSPU/nand.ll b/test/CodeGen/CellSPU/nand.ll index e1419232ec..b770cad8df 100644 --- a/test/CodeGen/CellSPU/nand.ll +++ b/test/CodeGen/CellSPU/nand.ll @@ -60,49 +60,49 @@ define i32 @nand_i32_2(i32 %arg1, i32 %arg2) { ret i32 %B } -define i16 @nand_i16_1(i16 signext %arg1, i16 signext %arg2) signext { +define signext i16 @nand_i16_1(i16 signext %arg1, i16 signext %arg2) { %A = and i16 %arg2, %arg1 ; <i16> [#uses=1] %B = xor i16 %A, -1 ; <i16> [#uses=1] ret i16 %B } -define i16 @nand_i16_2(i16 signext %arg1, i16 signext %arg2) signext { +define signext i16 @nand_i16_2(i16 signext %arg1, i16 signext %arg2) { %A = and i16 %arg1, %arg2 ; <i16> [#uses=1] %B = xor i16 %A, -1 ; <i16> [#uses=1] ret i16 %B } -define i16 @nand_i16u_1(i16 zeroext %arg1, i16 zeroext %arg2) zeroext { +define zeroext i16 @nand_i16u_1(i16 zeroext %arg1, i16 zeroext %arg2) { %A = and i16 %arg2, %arg1 ; <i16> [#uses=1] %B = xor i16 %A, -1 ; <i16> [#uses=1] ret i16 %B } -define i16 @nand_i16u_2(i16 zeroext %arg1, i16 zeroext %arg2) zeroext { +define zeroext i16 @nand_i16u_2(i16 zeroext %arg1, i16 zeroext %arg2) { %A = and i16 %arg1, %arg2 ; <i16> [#uses=1] %B = xor i16 %A, -1 ; <i16> [#uses=1] ret i16 %B } -define i8 @nand_i8u_1(i8 zeroext %arg1, i8 zeroext %arg2) zeroext { +define zeroext i8 @nand_i8u_1(i8 zeroext %arg1, i8 zeroext %arg2) { %A = and i8 %arg2, %arg1 ; <i8> [#uses=1] %B = xor i8 %A, -1 ; <i8> [#uses=1] ret i8 %B } -define i8 @nand_i8u_2(i8 zeroext %arg1, i8 zeroext %arg2) zeroext { +define zeroext i8 @nand_i8u_2(i8 zeroext %arg1, i8 zeroext %arg2) { %A = and i8 %arg1, %arg2 ; <i8> [#uses=1] %B = xor i8 %A, -1 ; <i8> [#uses=1] ret i8 %B } -define i8 @nand_i8_1(i8 signext %arg1, i8 signext %arg2) signext { +define signext i8 @nand_i8_1(i8 signext %arg1, i8 signext %arg2) { %A = and i8 %arg2, %arg1 ; <i8> [#uses=1] %B = xor i8 %A, -1 ; <i8> [#uses=1] ret i8 %B } -define i8 @nand_i8_2(i8 signext %arg1, i8 signext %arg2) signext { +define signext i8 @nand_i8_2(i8 signext %arg1, i8 signext %arg2) { %A = and i8 %arg1, %arg2 ; <i8> [#uses=1] %B = xor i8 %A, -1 ; <i8> [#uses=1] ret i8 %B diff --git a/test/CodeGen/CellSPU/or_ops.ll b/test/CodeGen/CellSPU/or_ops.ll index 8aa1e998bd..46349b9f51 100644 --- a/test/CodeGen/CellSPU/or_ops.ll +++ b/test/CodeGen/CellSPU/or_ops.ll @@ -200,12 +200,12 @@ define <4 x i32> @ori_v4i32_4(<4 x i32> %in) { ret <4 x i32> %tmp2 } -define i32 @ori_u32(i32 zeroext %in) zeroext { +define zeroext i32 @ori_u32(i32 zeroext %in) { %tmp37 = or i32 %in, 37 ; <i32> [#uses=1] ret i32 %tmp37 } -define i32 @ori_i32(i32 signext %in) signext { +define signext i32 @ori_i32(i32 signext %in) { %tmp38 = or i32 %in, 37 ; <i32> [#uses=1] ret i32 %tmp38 } @@ -235,12 +235,12 @@ define <8 x i16> @orhi_v8i16_4(<8 x i16> %in) { ret <8 x i16> %tmp2 } -define i16 @orhi_u16(i16 zeroext %in) zeroext { +define zeroext i16 @orhi_u16(i16 zeroext %in) { %tmp37 = or i16 %in, 37 ; <i16> [#uses=1] ret i16 %tmp37 } -define i16 @orhi_i16(i16 signext %in) signext { +define signext i16 @orhi_i16(i16 signext %in) { %tmp38 = or i16 %in, 37 ; <i16> [#uses=1] ret i16 %tmp38 } @@ -253,12 +253,12 @@ define <16 x i8> @orbi_v16i8(<16 x i8> %in) { ret <16 x i8> %tmp2 } -define i8 @orbi_u8(i8 zeroext %in) zeroext { +define zeroext i8 @orbi_u8(i8 zeroext %in) { %tmp37 = or i8 %in, 37 ; <i8> [#uses=1] ret i8 %tmp37 } -define i8 @orbi_i8(i8 signext %in) signext { +define signext i8 @orbi_i8(i8 signext %in) { %tmp38 = or i8 %in, 37 ; <i8> [#uses=1] ret i8 %tmp38 } diff --git a/test/CodeGen/CellSPU/shift_ops.ll b/test/CodeGen/CellSPU/shift_ops.ll index c4a5abd290..3252c776ec 100644 --- a/test/CodeGen/CellSPU/shift_ops.ll +++ b/test/CodeGen/CellSPU/shift_ops.ll @@ -33,22 +33,22 @@ define i16 @shlh_i16_2(i16 %arg1, i16 %arg2) { ret i16 %A } -define i16 @shlh_i16_3(i16 signext %arg1, i16 signext %arg2) signext { +define signext i16 @shlh_i16_3(i16 signext %arg1, i16 signext %arg2) { %A = shl i16 %arg1, %arg2 ret i16 %A } -define i16 @shlh_i16_4(i16 signext %arg1, i16 signext %arg2) signext { +define signext i16 @shlh_i16_4(i16 signext %arg1, i16 signext %arg2) { %A = shl i16 %arg2, %arg1 ret i16 %A } -define i16 @shlh_i16_5(i16 zeroext %arg1, i16 zeroext %arg2) zeroext { +define zeroext i16 @shlh_i16_5(i16 zeroext %arg1, i16 zeroext %arg2) { %A = shl i16 %arg1, %arg2 ret i16 %A } -define i16 @shlh_i16_6(i16 zeroext %arg1, i16 zeroext %arg2) zeroext { +define zeroext i16 @shlh_i16_6(i16 zeroext %arg1, i16 zeroext %arg2) { %A = shl i16 %arg2, %arg1 ret i16 %A } @@ -76,46 +76,46 @@ define i16 @shlhi_i16_4(i16 %arg1) { ret i16 %A } -define i16 @shlhi_i16_5(i16 signext %arg1) signext { +define signext i16 @shlhi_i16_5(i16 signext %arg1) { %A = shl i16 %arg1, 12 ret i16 %A } ; Should not generate anything other than the return, arg1 << 0 = arg1 -define i16 @shlhi_i16_6(i16 signext %arg1) signext { +define signext i16 @shlhi_i16_6(i16 signext %arg1) { %A = shl i16 %arg1, 0 ret i16 %A } -define i16 @shlhi_i16_7(i16 signext %arg1) signext { +define signext i16 @shlhi_i16_7(i16 signext %arg1) { %A = shl i16 16383, %arg1 ret i16 %A } ; Should generate 0, 0 << arg1 = 0 -define i16 @shlhi_i16_8(i16 signext %arg1) signext { +define signext i16 @shlhi_i16_8(i16 signext %arg1) { %A = shl i16 0, %arg1 ret i16 %A } -define i16 @shlhi_i16_9(i16 zeroext %arg1) zeroext { +define zeroext i16 @shlhi_i16_9(i16 zeroext %arg1) { %A = shl i16 %arg1, 12 ret i16 %A } ; Should not generate anything other than the return, arg1 << 0 = arg1 -define i16 @shlhi_i16_10(i16 zeroext %arg1) zeroext { +define zeroext i16 @shlhi_i16_10(i16 zeroext %arg1) { %A = shl i16 %arg1, 0 ret i16 %A } -define i16 @shlhi_i16_11(i16 zeroext %arg1) zeroext { +define zeroext i16 @shlhi_i16_11(i16 zeroext %arg1) { %A = shl i16 16383, %arg1 ret i16 %A } ; Should generate 0, 0 << arg1 = 0 -define i16 @shlhi_i16_12(i16 zeroext %arg1) zeroext { +define zeroext i16 @shlhi_i16_12(i16 zeroext %arg1) { %A = shl i16 0, %arg1 ret i16 %A } @@ -133,22 +133,22 @@ define i32 @shl_i32_2(i32 %arg1, i32 %arg2) { ret i32 %A } -define i32 @shl_i32_3(i32 signext %arg1, i32 signext %arg2) signext { +define signext i32 @shl_i32_3(i32 signext %arg1, i32 signext %arg2) { %A = shl i32 %arg1, %arg2 ret i32 %A } -define i32 @shl_i32_4(i32 signext %arg1, i32 signext %arg2) signext { +define signext i32 @shl_i32_4(i32 signext %arg1, i32 signext %arg2) { %A = shl i32 %arg2, %arg1 ret i32 %A } -define i32 @shl_i32_5(i32 zeroext %arg1, i32 zeroext %arg2) zeroext { +define zeroext i32 @shl_i32_5(i32 zeroext %arg1, i32 zeroext %arg2) { %A = shl i32 %arg1, %arg2 ret i32 %A } -define i32 @shl_i32_6(i32 zeroext %arg1, i32 zeroext %arg2) zeroext { +define zeroext i32 @shl_i32_6(i32 zeroext %arg1, i32 zeroext %arg2) { %A = shl i32 %arg2, %arg1 ret i32 %A } @@ -176,46 +176,46 @@ define i32 @shli_i32_4(i32 %arg1) { ret i32 %A } -define i32 @shli_i32_5(i32 signext %arg1) signext { +define signext i32 @shli_i32_5(i32 signext %arg1) { %A = shl i32 %arg1, 12 ret i32 %A } ; Should not generate anything other than the return, arg1 << 0 = arg1 -define i32 @shli_i32_6(i32 signext %arg1) signext { +define signext i32 @shli_i32_6(i32 signext %arg1) { %A = shl i32 %arg1, 0 ret i32 %A } -define i32 @shli_i32_7(i32 signext %arg1) signext { +define signext i32 @shli_i32_7(i32 signext %arg1) { %A = shl i32 16383, %arg1 ret i32 %A } ; Should generate 0, 0 << arg1 = 0 -define i32 @shli_i32_8(i32 signext %arg1) signext { +define signext i32 @shli_i32_8(i32 signext %arg1) { %A = shl i32 0, %arg1 ret i32 %A } -define i32 @shli_i32_9(i32 zeroext %arg1) zeroext { +define zeroext i32 @shli_i32_9(i32 zeroext %arg1) { %A = shl i32 %arg1, 12 ret i32 %A } ; Should not generate anything other than the return, arg1 << 0 = arg1 -define i32 @shli_i32_10(i32 zeroext %arg1) zeroext { +define zeroext i32 @shli_i32_10(i32 zeroext %arg1) { %A = shl i32 %arg1, 0 ret i32 %A } -define i32 @shli_i32_11(i32 zeroext %arg1) zeroext { +define zeroext i32 @shli_i32_11(i32 zeroext %arg1) { %A = shl i32 16383, %arg1 ret i32 %A } ; Should generate 0, 0 << arg1 = 0 -define i32 @shli_i32_12(i32 zeroext %arg1) zeroext { +define zeroext i32 @shli_i32_12(i32 zeroext %arg1) { %A = shl i32 0, %arg1 ret i32 %A } diff --git a/test/CodeGen/CellSPU/struct_1.ll b/test/CodeGen/CellSPU/struct_1.ll index 8ee7d93225..adbb5efa28 100644 --- a/test/CodeGen/CellSPU/struct_1.ll +++ b/test/CodeGen/CellSPU/struct_1.ll @@ -47,19 +47,19 @@ target triple = "spu" ; struct hackstate state = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } @state = global %struct.hackstate zeroinitializer, align 16 -define i8 @get_hackstate_c1() zeroext nounwind { +define zeroext i8 @get_hackstate_c1() nounwind { entry: %tmp2 = load i8* getelementptr (%struct.hackstate* @state, i32 0, i32 0), align 16 ret i8 %tmp2 } -define i8 @get_hackstate_c2() zeroext nounwind { +define zeroext i8 @get_hackstate_c2() nounwind { entry: %tmp2 = load i8* getelementptr (%struct.hackstate* @state, i32 0, i32 1), align 16 ret i8 %tmp2 } -define i8 @get_hackstate_c3() zeroext nounwind { +define zeroext i8 @get_hackstate_c3() nounwind { entry: %tmp2 = load i8* getelementptr (%struct.hackstate* @state, i32 0, i32 2), align 16 ret i8 %tmp2 @@ -71,19 +71,19 @@ entry: ret i32 %tmp2 } -define i16 @get_hackstate_s1() signext nounwind { +define signext i16 @get_hackstate_s1() nounwind { entry: %tmp2 = load i16* getelementptr (%struct.hackstate* @state, i32 0, i32 4), align 16 ret i16 %tmp2 } -define i8 @get_hackstate_c6() zeroext nounwind { +define zeroext i8 @get_hackstate_c6() nounwind { entry: %tmp2 = load i8* getelementptr (%struct.hackstate* @state, i32 0, i32 8), align 16 ret i8 %tmp2 } -define i8 @get_hackstate_c7() zeroext nounwind { +define zeroext i8 @get_hackstate_c7() nounwind { entry: %tmp2 = load i8* getelementptr (%struct.hackstate* @state, i32 0, i32 9), align 16 ret i8 %tmp2 |