]> granicus.if.org Git - llvm/commitdiff
AMDGPU: fix bad test exposed by r314522
authorNicolai Haehnle <nhaehnle@gmail.com>
Fri, 29 Sep 2017 16:07:05 +0000 (16:07 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Fri, 29 Sep 2017 16:07:05 +0000 (16:07 +0000)
The test attempts to use -1 as carry-in for v_addc_*.

Before writing r314522, I did actually test this on real hardware,
and found that it doesn't work. So r314522 is correct in restricting
the carry-in operand: just remove those tests to make things pass
again.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314530 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/AMDGPU/vop2.s

index 5c2bd1c2e196b143dcb2ff870372fb72350f8515..5b790dbf5628a9d88f0bb7cb9e2c9c7430614491 100644 (file)
@@ -347,14 +347,6 @@ v_addc_u32 v1, s[0:1], v2, v3, s[2:3]
 // VI: v_addc_u32_e64 v1, s[0:1], v2, v3, s[2:3] ; encoding: [0x01,0x00,0x1c,0xd1,0x02,0x07,0x0a,0x00]
 v_addc_u32_e64 v1, s[0:1], v2, v3, s[2:3]
 
-// SI: v_addc_u32_e64 v1, s[0:1], v2, v3, -1 ; encoding: [0x01,0x00,0x50,0xd2,0x02,0x07,0x06,0x03]
-// VI: v_addc_u32_e64 v1, s[0:1], v2, v3, -1 ; encoding: [0x01,0x00,0x1c,0xd1,0x02,0x07,0x06,0x03]
-v_addc_u32_e64 v1, s[0:1], v2, v3, -1
-
-// SI: v_addc_u32_e64 v1, vcc, v2, v3, -1 ; encoding: [0x01,0x6a,0x50,0xd2,0x02,0x07,0x06,0x03]
-// VI: v_addc_u32_e64 v1, vcc, v2, v3, -1 ; encoding: [0x01,0x6a,0x1c,0xd1,0x02,0x07,0x06,0x03]
-v_addc_u32_e64 v1, vcc, v2, v3, -1
-
 // SI: v_addc_u32_e64 v1, vcc, v2, v3, vcc ; encoding: [0x01,0x6a,0x50,0xd2,0x02,0x07,0xaa,0x01]
 // VI: v_addc_u32_e64 v1, vcc, v2, v3, vcc ; encoding: [0x01,0x6a,0x1c,0xd1,0x02,0x07,0xaa,0x01]
 v_addc_u32_e64 v1, vcc, v2, v3, vcc