Skip to content

Conversation

@broxigarchen
Copy link
Contributor

@broxigarchen broxigarchen commented Nov 19, 2024

This is a NFC change. Update gfx11/gfx12 vop3 test file with the latest update_mc_test_script.py.

This is also preparing for the up-coming true16 change

@broxigarchen broxigarchen marked this pull request as ready for review November 19, 2024 19:01
@llvmbot llvmbot added backend:AMDGPU llvm:mc Machine (object) code labels Nov 19, 2024
@llvmbot
Copy link
Member

llvmbot commented Nov 19, 2024

@llvm/pr-subscribers-mc

@llvm/pr-subscribers-backend-amdgpu

Author: Brox Chen (broxigarchen)

Changes

This is a NFC change. Update gfx11/gfx12 vop3 test file with update_mc_test_script.py.

This is preparing for the up-coming true16 change


Patch is 2.68 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/116859.diff

6 Files Affected:

  • (modified) llvm/test/MC/AMDGPU/gfx11_asm_vop3.s (+2246-2245)
  • (modified) llvm/test/MC/AMDGPU/gfx11_asm_vop3_dpp16.s (+1652-1651)
  • (modified) llvm/test/MC/AMDGPU/gfx11_asm_vop3_dpp8.s (+1043-1042)
  • (modified) llvm/test/MC/AMDGPU/gfx12_asm_vop3.s (+2593-2592)
  • (modified) llvm/test/MC/AMDGPU/gfx12_asm_vop3_dpp16.s (+2039-2038)
  • (modified) llvm/test/MC/AMDGPU/gfx12_asm_vop3_dpp8.s (+1343-1342)
diff --git a/llvm/test/MC/AMDGPU/gfx11_asm_vop3.s b/llvm/test/MC/AMDGPU/gfx11_asm_vop3.s
index 210d55898367d8..7fb3e98394936a 100644
--- a/llvm/test/MC/AMDGPU/gfx11_asm_vop3.s
+++ b/llvm/test/MC/AMDGPU/gfx11_asm_vop3.s
@@ -1,2165 +1,2166 @@
+// NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --version 5
 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize32,+real-true16 -show-encoding %s | FileCheck --check-prefixes=GFX11,W32 %s
 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize64,+real-true16 -show-encoding %s | FileCheck --check-prefixes=GFX11,W64 %s
-// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize32,+real-true16 %s 2>&1 | FileCheck --check-prefix=W32-ERR --implicit-check-not=error: %s
-// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize64,+real-true16 %s 2>&1 | FileCheck --check-prefix=W64-ERR --implicit-check-not=error: %s
+// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize32,+real-true16 -filetype=null %s 2>&1 | FileCheck --check-prefix=W32-ERR --implicit-check-not=error: %s
+// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=+wavefrontsize64,+real-true16 -filetype=null %s 2>&1 | FileCheck --check-prefix=W64-ERR --implicit-check-not=error: %s
 
 v_add3_u32 v5, v1, v2, s3
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x01,0x05,0x0e,0x00]
+// GFX11: v_add3_u32 v5, v1, v2, s3               ; encoding: [0x05,0x00,0x55,0xd6,0x01,0x05,0x0e,0x00]
 
 v_add3_u32 v5, v255, s2, s105
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0xff,0x05,0xa4,0x01]
+// GFX11: v_add3_u32 v5, v255, s2, s105           ; encoding: [0x05,0x00,0x55,0xd6,0xff,0x05,0xa4,0x01]
 
 v_add3_u32 v5, s1, v255, exec_hi
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x01,0xfe,0xff,0x01]
+// GFX11: v_add3_u32 v5, s1, v255, exec_hi        ; encoding: [0x05,0x00,0x55,0xd6,0x01,0xfe,0xff,0x01]
 
 v_add3_u32 v5, s105, s105, exec_lo
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x69,0xd2,0xf8,0x01]
+// GFX11: v_add3_u32 v5, s105, s105, exec_lo      ; encoding: [0x05,0x00,0x55,0xd6,0x69,0xd2,0xf8,0x01]
 
 v_add3_u32 v5, vcc_lo, ttmp15, v3
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x6a,0xf6,0x0c,0x04]
+// GFX11: v_add3_u32 v5, vcc_lo, ttmp15, v3       ; encoding: [0x05,0x00,0x55,0xd6,0x6a,0xf6,0x0c,0x04]
 
 v_add3_u32 v5, vcc_hi, 0xaf123456, v255
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x6b,0xfe,0xfd,0x07,0x56,0x34,0x12,0xaf]
+// GFX11: v_add3_u32 v5, vcc_hi, 0xaf123456, v255 ; encoding: [0x05,0x00,0x55,0xd6,0x6b,0xfe,0xfd,0x07,0x56,0x34,0x12,0xaf]
 
 v_add3_u32 v5, ttmp15, src_scc, ttmp15
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x7b,0xfa,0xed,0x01]
+// GFX11: v_add3_u32 v5, ttmp15, src_scc, ttmp15  ; encoding: [0x05,0x00,0x55,0xd6,0x7b,0xfa,0xed,0x01]
 
 v_add3_u32 v5, m0, 0.5, m0
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x7d,0xe0,0xf5,0x01]
+// GFX11: v_add3_u32 v5, m0, 0.5, m0              ; encoding: [0x05,0x00,0x55,0xd6,0x7d,0xe0,0xf5,0x01]
 
 v_add3_u32 v5, exec_lo, -1, vcc_hi
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x7e,0x82,0xad,0x01]
+// GFX11: v_add3_u32 v5, exec_lo, -1, vcc_hi      ; encoding: [0x05,0x00,0x55,0xd6,0x7e,0x82,0xad,0x01]
 
 v_add3_u32 v5, exec_hi, null, vcc_lo
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x7f,0xf8,0xa8,0x01]
+// GFX11: v_add3_u32 v5, exec_hi, null, vcc_lo    ; encoding: [0x05,0x00,0x55,0xd6,0x7f,0xf8,0xa8,0x01]
 
 v_add3_u32 v5, null, exec_lo, 0xaf123456
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0x7c,0xfc,0xfc,0x03,0x56,0x34,0x12,0xaf]
+// GFX11: v_add3_u32 v5, null, exec_lo, 0xaf123456 ; encoding: [0x05,0x00,0x55,0xd6,0x7c,0xfc,0xfc,0x03,0x56,0x34,0x12,0xaf]
 
 v_add3_u32 v5, -1, exec_hi, src_scc
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0xc1,0xfe,0xf4,0x03]
+// GFX11: v_add3_u32 v5, -1, exec_hi, src_scc     ; encoding: [0x05,0x00,0x55,0xd6,0xc1,0xfe,0xf4,0x03]
 
 v_add3_u32 v5, 0.5, m0, 0.5
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0xf0,0xfa,0xc0,0x03]
+// GFX11: v_add3_u32 v5, 0.5, m0, 0.5             ; encoding: [0x05,0x00,0x55,0xd6,0xf0,0xfa,0xc0,0x03]
 
 v_add3_u32 v5, src_scc, vcc_lo, -1
-// GFX11: encoding: [0x05,0x00,0x55,0xd6,0xfd,0xd4,0x04,0x03]
+// GFX11: v_add3_u32 v5, src_scc, vcc_lo, -1      ; encoding: [0x05,0x00,0x55,0xd6,0xfd,0xd4,0x04,0x03]
 
 v_add3_u32 v255, 0xaf123456, vcc_hi, null
-// GFX11: encoding: [0xff,0x00,0x55,0xd6,0xff,0xd6,0xf0,0x01,0x56,0x34,0x12,0xaf]
+// GFX11: v_add3_u32 v255, 0xaf123456, vcc_hi, null ; encoding: [0xff,0x00,0x55,0xd6,0xff,0xd6,0xf0,0x01,0x56,0x34,0x12,0xaf]
 
 v_add_co_u32 v5, s6, v1, v2
-// W32: encoding: [0x05,0x06,0x00,0xd7,0x01,0x05,0x02,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, v1, v2             ; encoding: [0x05,0x06,0x00,0xd7,0x01,0x05,0x02,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s6, v255, v255
-// W32: encoding: [0x05,0x06,0x00,0xd7,0xff,0xff,0x03,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, v255, v255         ; encoding: [0x05,0x06,0x00,0xd7,0xff,0xff,0x03,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s6, s1, s2
-// W32: encoding: [0x05,0x06,0x00,0xd7,0x01,0x04,0x00,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, s1, s2             ; encoding: [0x05,0x06,0x00,0xd7,0x01,0x04,0x00,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s6, s105, s105
-// W32: encoding: [0x05,0x06,0x00,0xd7,0x69,0xd2,0x00,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, s105, s105         ; encoding: [0x05,0x06,0x00,0xd7,0x69,0xd2,0x00,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s6, vcc_lo, ttmp15
-// W32: encoding: [0x05,0x06,0x00,0xd7,0x6a,0xf6,0x00,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, vcc_lo, ttmp15     ; encoding: [0x05,0x06,0x00,0xd7,0x6a,0xf6,0x00,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s6, vcc_hi, 0xaf123456
-// W32: encoding: [0x05,0x06,0x00,0xd7,0x6b,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, vcc_hi, 0xaf123456 ; encoding: [0x05,0x06,0x00,0xd7,0x6b,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s6, ttmp15, src_scc
-// W32: encoding: [0x05,0x06,0x00,0xd7,0x7b,0xfa,0x01,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, ttmp15, src_scc    ; encoding: [0x05,0x06,0x00,0xd7,0x7b,0xfa,0x01,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s6, m0, 0.5
-// W32: encoding: [0x05,0x06,0x00,0xd7,0x7d,0xe0,0x01,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, m0, 0.5            ; encoding: [0x05,0x06,0x00,0xd7,0x7d,0xe0,0x01,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s6, exec_lo, -1
-// W32: encoding: [0x05,0x06,0x00,0xd7,0x7e,0x82,0x01,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, exec_lo, -1        ; encoding: [0x05,0x06,0x00,0xd7,0x7e,0x82,0x01,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s6, exec_hi, null
-// W32: encoding: [0x05,0x06,0x00,0xd7,0x7f,0xf8,0x00,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s6, exec_hi, null      ; encoding: [0x05,0x06,0x00,0xd7,0x7f,0xf8,0x00,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s105, null, exec_lo
-// W32: encoding: [0x05,0x69,0x00,0xd7,0x7c,0xfc,0x00,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, s105, null, exec_lo    ; encoding: [0x05,0x69,0x00,0xd7,0x7c,0xfc,0x00,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, vcc_lo, -1, exec_hi
-// W32: encoding: [0x05,0x6a,0x00,0xd7,0xc1,0xfe,0x00,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, vcc_lo, -1, exec_hi    ; encoding: [0x05,0x6a,0x00,0xd7,0xc1,0xfe,0x00,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, vcc_hi, 0.5, m0
-// W32: encoding: [0x05,0x6b,0x00,0xd7,0xf0,0xfa,0x00,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, vcc_hi, 0.5, m0        ; encoding: [0x05,0x6b,0x00,0xd7,0xf0,0xfa,0x00,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, ttmp15, src_scc, vcc_lo
-// W32: encoding: [0x05,0x7b,0x00,0xd7,0xfd,0xd4,0x00,0x00]
-// W64-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W32: v_add_co_u32 v5, ttmp15, src_scc, vcc_lo ; encoding: [0x05,0x7b,0x00,0xd7,0xfd,0xd4,0x00,0x00]
+// W64-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], v1, v2
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x01,0x05,0x02,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], v1, v2       ; encoding: [0x05,0x0c,0x00,0xd7,0x01,0x05,0x02,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], v255, v255
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0xff,0xff,0x03,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], v255, v255   ; encoding: [0x05,0x0c,0x00,0xd7,0xff,0xff,0x03,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], s1, s2
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x01,0x04,0x00,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], s1, s2       ; encoding: [0x05,0x0c,0x00,0xd7,0x01,0x04,0x00,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], s105, s105
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x69,0xd2,0x00,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], s105, s105   ; encoding: [0x05,0x0c,0x00,0xd7,0x69,0xd2,0x00,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], vcc_lo, ttmp15
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x6a,0xf6,0x00,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], vcc_lo, ttmp15 ; encoding: [0x05,0x0c,0x00,0xd7,0x6a,0xf6,0x00,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], vcc_hi, 0xaf123456
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x6b,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], vcc_hi, 0xaf123456 ; encoding: [0x05,0x0c,0x00,0xd7,0x6b,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], ttmp15, src_scc
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x7b,0xfa,0x01,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], ttmp15, src_scc ; encoding: [0x05,0x0c,0x00,0xd7,0x7b,0xfa,0x01,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], m0, 0.5
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x7d,0xe0,0x01,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], m0, 0.5      ; encoding: [0x05,0x0c,0x00,0xd7,0x7d,0xe0,0x01,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], exec_lo, -1
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x7e,0x82,0x01,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], exec_lo, -1  ; encoding: [0x05,0x0c,0x00,0xd7,0x7e,0x82,0x01,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], exec_hi, null
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x7f,0xf8,0x00,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], exec_hi, null ; encoding: [0x05,0x0c,0x00,0xd7,0x7f,0xf8,0x00,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[12:13], null, exec_lo
-// W64: encoding: [0x05,0x0c,0x00,0xd7,0x7c,0xfc,0x00,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[12:13], null, exec_lo ; encoding: [0x05,0x0c,0x00,0xd7,0x7c,0xfc,0x00,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, s[104:105], -1, exec_hi
-// W64: encoding: [0x05,0x68,0x00,0xd7,0xc1,0xfe,0x00,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, s[104:105], -1, exec_hi ; encoding: [0x05,0x68,0x00,0xd7,0xc1,0xfe,0x00,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v5, vcc, 0.5, m0
-// W64: encoding: [0x05,0x6a,0x00,0xd7,0xf0,0xfa,0x00,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode
+// W64: v_add_co_u32 v5, vcc, 0.5, m0           ; encoding: [0x05,0x6a,0x00,0xd7,0xf0,0xfa,0x00,0x00]
+// W32-ERR: :[[@LINE-2]]:1: error: operands are not valid for this GPU or mode
 
 v_add_co_u32 v5, ttmp[14:15], src_scc, vcc_lo
-// W64: encoding: [0x05,0x7a,0x00,0xd7,0xfd,0xd4,0x00,0x00]
-// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
+// W64: v_add_co_u32 v5, ttmp[14:15], src_scc, vcc_lo ; encoding: [0x05,0x7a,0x00,0xd7,0xfd,0xd4,0x00,0x00]
+// W32-ERR: :[[@LINE-2]]:18: error: invalid operand for instruction
 
 v_add_co_u32 v255, null, 0xaf123456, vcc_hi clamp
-// GFX11: encoding: [0xff,0xfc,0x00,0xd7,0xff,0xd6,0x00,0x00,0x56,0x34,0x12,0xaf]
+// GFX11: v_add_co_u32 v255, null, 0xaf123456, vcc_hi clamp ; encoding: [0xff,0xfc,0x00,0xd7,0xff,0xd6,0x00,0x00,0x56,0x34,0x12,0xaf]
 
 v_add_f64 v[5:6], v[1:2], v[2:3]
-// GFX11: encoding: [0x05,0x00,0x27,0xd7,0x01,0x05,0x02,0x00]
+// GFX11: v_add_f64 v[5:6], v[1:2], v[2:3]        ; encoding: [0x05,0x00,0x27,0xd7,0x01,0x05,0x02,0x00]
 
 v_add_f64 v[5:6], v[254:255], v[254:255]
-// GFX11: encoding: [0x05,0x00,0x27,0xd7,0xfe,0xfd,0x03,0x00]
+// GFX11: v_add_f64 v[5:6], v[254:255], v[254:255] ; encoding: [0x05,0x00,0x27,0xd7,0xfe,0xfd,0x03,0x00]
 
 v_add_f64 v[5:6], s[2:3], s[4:5]
-// GFX11: encoding: [0x05,0x00,0x27,0xd7,0x02,0x08,0x00,0x00]
+// GFX11: v_add_f64 v[5:6], s[2:3], s[4:5]        ; encoding: [0x05,0x00,0x27,0xd7,0x02,0x08,0x00,0x00]
 
 v_add_f64 v[5:6], s[104:105], s[104:105]
-// GFX11: encoding: [0x05,0x00,0x27,0xd7,0x68,0xd0,0x00,0x00]
+// GFX11: v_add_f64 v[5:6], s[104:105], s[104:105] ; encoding: [0x05,0x00,0x27,0xd7,0x68,0xd0,0x00,0x00]
 
 v_add_f64 v[5:6], vcc, ttmp[14:15]
-// GFX11: encoding: [0x05,0x00,0x27,0xd7,0x6a,0xf4,0x00,0x00]
+// GFX11: v_add_f64 v[5:6], vcc, ttmp[14:15]      ; encoding: [0x05,0x00,0x27,0xd7,0x6a,0xf4,0x00,0x00]
 
 v_add_f64 v[5:6], ttmp[14:15], 0xaf123456
-// GFX11: encoding: [0x05,0x00,0x27,0xd7,0x7a,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]
+// GFX11: v_add_f64 v[5:6], ttmp[14:15], 0xaf123456 ; encoding: [0x05,0x00,0x27,0xd7,0x7a,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]
 
 v_add_f64 v[5:6], -|exec|, src_scc
-// GFX11: encoding: [0x05,0x01,0x27,0xd7,0x7e,0xfa,0x01,0x20]
+// GFX11: v_add_f64 v[5:6], -|exec|, src_scc      ; encoding: [0x05,0x01,0x27,0xd7,0x7e,0xfa,0x01,0x20]
 
 v_add_f64 v[5:6], null, 0.5
-// GFX11: encoding: [0x05,0x00,0x27,0xd7,0x7c,0xe0,0x01,0x00]
+// GFX11: v_add_f64 v[5:6], null, 0.5             ; encoding: [0x05,0x00,0x27,0xd7,0x7c,0xe0,0x01,0x00]
 
 v_add_f64 v[5:6], -1, -1
-// GFX11: encoding: [0x05,0x00,0x27,0xd7,0xc1,0x82,0x01,0x00]
+// GFX11: v_add_f64 v[5:6], -1, -1                ; encoding: [0x05,0x00,0x27,0xd7,0xc1,0x82,0x01,0x00]
 
 v_add_f64 v[5:6], 0.5, null mul:2
-// GFX11: encoding: [0x05,0x00,0x27,0xd7,0xf0,0xf8,0x00,0x08]
+// GFX11: v_add_f64 v[5:6], 0.5, null mul:2       ; encoding: [0x05,0x00,0x27,0xd7,0xf0,0xf8,0x00,0x08]
 
 v_add_f64 v[5:6], -|src_scc|, -|exec| mul:4
-// GFX11: encoding: [0x05,0x03,0x27,0xd7,0xfd,0xfc,0x00,0x70]
+// GFX11: v_add_f64 v[5:6], -|src_scc|, -|exec| mul:4 ; encoding: [0x05,0x03,0x27,0xd7,0xfd,0xfc,0x00,0x70]
 
 v_add_f64 v[254:255], 0xaf123456, -|vcc| clamp div:2
-// GFX11: encoding: [0xfe,0x82,0x27,0xd7,0xff,0xd4,0x00,0x58,0x56,0x34,0x12,0xaf]
+// GFX11: v_add_f64 v[254:255], 0xaf123456, -|vcc| clamp div:2 ; encoding: [0xfe,0x82,0x27,0xd7,0xff,0xd4,0x00,0x58,0x56,0x34,0x12,0xaf]
 
 v_add_lshl_u32 v5, v1, v2, s3
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x01,0x05,0x0e,0x00]
+// GFX11: v_add_lshl_u32 v5, v1, v2, s3           ; encoding: [0x05,0x00,0x47,0xd6,0x01,0x05,0x0e,0x00]
 
 v_add_lshl_u32 v5, v255, s2, s105
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0xff,0x05,0xa4,0x01]
+// GFX11: v_add_lshl_u32 v5, v255, s2, s105       ; encoding: [0x05,0x00,0x47,0xd6,0xff,0x05,0xa4,0x01]
 
 v_add_lshl_u32 v5, s1, v255, exec_hi
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x01,0xfe,0xff,0x01]
+// GFX11: v_add_lshl_u32 v5, s1, v255, exec_hi    ; encoding: [0x05,0x00,0x47,0xd6,0x01,0xfe,0xff,0x01]
 
 v_add_lshl_u32 v5, s105, s105, exec_lo
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x69,0xd2,0xf8,0x01]
+// GFX11: v_add_lshl_u32 v5, s105, s105, exec_lo  ; encoding: [0x05,0x00,0x47,0xd6,0x69,0xd2,0xf8,0x01]
 
 v_add_lshl_u32 v5, vcc_lo, ttmp15, v3
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x6a,0xf6,0x0c,0x04]
+// GFX11: v_add_lshl_u32 v5, vcc_lo, ttmp15, v3   ; encoding: [0x05,0x00,0x47,0xd6,0x6a,0xf6,0x0c,0x04]
 
 v_add_lshl_u32 v5, vcc_hi, 0xaf123456, v255
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x6b,0xfe,0xfd,0x07,0x56,0x34,0x12,0xaf]
+// GFX11: v_add_lshl_u32 v5, vcc_hi, 0xaf123456, v255 ; encoding: [0x05,0x00,0x47,0xd6,0x6b,0xfe,0xfd,0x07,0x56,0x34,0x12,0xaf]
 
 v_add_lshl_u32 v5, ttmp15, src_scc, ttmp15
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x7b,0xfa,0xed,0x01]
+// GFX11: v_add_lshl_u32 v5, ttmp15, src_scc, ttmp15 ; encoding: [0x05,0x00,0x47,0xd6,0x7b,0xfa,0xed,0x01]
 
 v_add_lshl_u32 v5, m0, 0.5, m0
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x7d,0xe0,0xf5,0x01]
+// GFX11: v_add_lshl_u32 v5, m0, 0.5, m0          ; encoding: [0x05,0x00,0x47,0xd6,0x7d,0xe0,0xf5,0x01]
 
 v_add_lshl_u32 v5, exec_lo, -1, vcc_hi
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x7e,0x82,0xad,0x01]
+// GFX11: v_add_lshl_u32 v5, exec_lo, -1, vcc_hi  ; encoding: [0x05,0x00,0x47,0xd6,0x7e,0x82,0xad,0x01]
 
 v_add_lshl_u32 v5, exec_hi, null, vcc_lo
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x7f,0xf8,0xa8,0x01]
+// GFX11: v_add_lshl_u32 v5, exec_hi, null, vcc_lo ; encoding: [0x05,0x00,0x47,0xd6,0x7f,0xf8,0xa8,0x01]
 
 v_add_lshl_u32 v5, null, exec_lo, 0xaf123456
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0x7c,0xfc,0xfc,0x03,0x56,0x34,0x12,0xaf]
+// GFX11: v_add_lshl_u32 v5, null, exec_lo, 0xaf123456 ; encoding: [0x05,0x00,0x47,0xd6,0x7c,0xfc,0xfc,0x03,0x56,0x34,0x12,0xaf]
 
 v_add_lshl_u32 v5, -1, exec_hi, src_scc
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0xc1,0xfe,0xf4,0x03]
+// GFX11: v_add_lshl_u32 v5, -1, exec_hi, src_scc ; encoding: [0x05,0x00,0x47,0xd6,0xc1,0xfe,0xf4,0x03]
 
 v_add_lshl_u32 v5, 0.5, m0, 0.5
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0xf0,0xfa,0xc0,0x03]
+// GFX11: v_add_lshl_u32 v5, 0.5, m0, 0.5         ; encoding: [0x05,0x00,0x47,0xd6,0xf0,0xfa,0xc0,0x03]
 
 v_add_lshl_u32 v5, src_scc, vcc_lo, -1
-// GFX11: encoding: [0x05,0x00,0x47,0xd6,0xfd,0xd4,0x04,0x03]
+// GFX11: v_add_lshl_u32 v5, src_scc, vcc_lo, -1  ; encoding: [0x05,0x00,0x47,0xd6,0xfd,0xd4,0x04,0x03]
 
 v_add_lshl_u32 v255, 0xaf123456, vcc_hi, null
-// GFX11: encoding: [0xff,0x00,0x47,0xd6,0xff,0xd6,0xf0,0x01,0x56,0x34,0x12,0xaf]
+// GFX11: v_add_lshl_u32 v255,...
[truncated]

@broxigarchen
Copy link
Contributor Author

test failure is not relevant to this patch

@broxigarchen broxigarchen merged commit 32da1fd into llvm:main Nov 21, 2024
11 of 13 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 21, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-qemu running on sanitizer-buildbot4 while building llvm at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/139/builds/6735

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[72/77] Generating ScudoUnitTestsObjects.gtest-all.cc.mips64.o
[73/77] Generating ScudoCUnitTest-mips64-Test
[74/77] Generating ScudoCxxUnitTest-mips64-Test
[75/77] Generating ScudoUnitTestsObjects.combined_test.cpp.mips64.o
[76/77] Generating ScudoUnitTest-mips64-Test
[76/77] Running Scudo Standalone tests
llvm-lit: /home/b/sanitizer-x86_64-linux-qemu/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 158 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: ScudoStandalone-Unit :: ./ScudoUnitTest-mips64-Test/69/140 (158 of 158)
******************** TEST 'ScudoStandalone-Unit :: ./ScudoUnitTest-mips64-Test/69/140' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-x86_64-linux-qemu/build/llvm_build2_debug_mips64_qemu/lib/scudo/standalone/tests/./ScudoUnitTest-mips64-Test-ScudoStandalone-Unit-2255568-69-140.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=140 GTEST_SHARD_INDEX=69 /home/b/sanitizer-x86_64-linux-qemu/build/qemu_build/qemu-mips64 -L /usr/mips64-linux-gnuabi64 /home/b/sanitizer-x86_64-linux-qemu/build/llvm_build2_debug_mips64_qemu/lib/scudo/standalone/tests/./ScudoUnitTest-mips64-Test
--

Note: This is test shard 70 of 140.
[==========] Running 2 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 1 test from ScudoCombinedDeathTestBasicCombined14_AndroidConfig
[ RUN      ] ScudoCombinedDeathTestBasicCombined14_AndroidConfig.BasicCombined14
Stats: SizeClassAllocator64: 1M mapped (0M rss) in 19 allocations; remains 19; ReleaseToOsIntervalMs = 1000
  00 (    64): mapped:    256K popped:      13 pushed:       0 inuse:     13 total:    104 releases:      0 last released:      0K latest pushed bytes:      5K region: 0x555576869000 (0x555576868000)
  27 ( 16400): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases:      0 last released:      0K latest pushed bytes:    112K region: 0x5556a686d000 (0x5556a6868000)
  28 ( 18448): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases:      0 last released:      0K latest pushed bytes:    126K region: 0x555756874000 (0x555756868000)
  29 ( 23056): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases:      0 last released:      0K latest pushed bytes:    157K region: 0x55573686b000 (0x555736868000)
  30 ( 29456): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases:      0 last released:      0K latest pushed bytes:    201K region: 0x5556b6872000 (0x5556b6868000)
  31 ( 33296): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      7 releases:      0 last released:      0K latest pushed bytes:    195K region: 0x555656874000 (0x555656868000)
  32 ( 65552): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      3 releases:      0 last released:      0K latest pushed bytes:    128K region: 0x555686870000 (0x555686868000)
Stats: MapAllocator: allocated 65 times (6504K), freed 65 times (6504K), remains 0 (0K) max 0M, Fragmented 0K
Stats: MapAllocatorCache: EntriesCount: 32, MaxEntriesCount: 32, MaxEntrySize: 2097152, ReleaseToOsIntervalMs = 1000
Stats: CacheRetrievalStats: SuccessRate: 0/0 (100.00%)
Cache Entry Info (Most Recent -> Least Recent):
  StartBlockAddress: 0x5557670ef000, EndBlockAddress: 0x555767109000, BlockSize: 106496 
  StartBlockAddress: 0x5557670cf000, EndBlockAddress: 0x5557670e7000, BlockSize: 98304 
  StartBlockAddress: 0x5557670af000, EndBlockAddress: 0x5557670c5000, BlockSize: 90112 
  StartBlockAddress: 0x55576708f000, EndBlockAddress: 0x5557670a3000, BlockSize: 81920 
  StartBlockAddress: 0x55576706f000, EndBlockAddress: 0x555767081000, BlockSize: 73728 
  StartBlockAddress: 0x55576703f000, EndBlockAddress: 0x55576705f000, BlockSize: 131072 
  StartBlockAddress: 0x55576701f000, EndBlockAddress: 0x55576703d000, BlockSize: 122880 
  StartBlockAddress: 0x555766fff000, EndBlockAddress: 0x55576701b000, BlockSize: 114688 
  StartBlockAddress: 0x555766fdf000, EndBlockAddress: 0x555766ff9000, BlockSize: 106496 
  StartBlockAddress: 0x555766fbf000, EndBlockAddress: 0x555766fd7000, BlockSize: 98304 
  StartBlockAddress: 0x555766f9f000, EndBlockAddress: 0x555766fb5000, BlockSize: 90112 
  StartBlockAddress: 0x555766f7f000, EndBlockAddress: 0x555766f93000, BlockSize: 81920 
  StartBlockAddress: 0x555766f5f000, EndBlockAddress: 0x555766f71000, BlockSize: 73728 
  StartBlockAddress: 0x555766f2f000, EndBlockAddress: 0x555766f4f000, BlockSize: 131072 
  StartBlockAddress: 0x555766f0f000, EndBlockAddress: 0x555766f2d000, BlockSize: 122880 
  StartBlockAddress: 0x555766eef000, EndBlockAddress: 0x555766f0b000, BlockSize: 114688 
Step 22 (scudo debug_mips64_qemu) failure: scudo debug_mips64_qemu (failure)
...
[72/77] Generating ScudoUnitTestsObjects.gtest-all.cc.mips64.o
[73/77] Generating ScudoCUnitTest-mips64-Test
[74/77] Generating ScudoCxxUnitTest-mips64-Test
[75/77] Generating ScudoUnitTestsObjects.combined_test.cpp.mips64.o
[76/77] Generating ScudoUnitTest-mips64-Test
[76/77] Running Scudo Standalone tests
llvm-lit: /home/b/sanitizer-x86_64-linux-qemu/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 158 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: ScudoStandalone-Unit :: ./ScudoUnitTest-mips64-Test/69/140 (158 of 158)
******************** TEST 'ScudoStandalone-Unit :: ./ScudoUnitTest-mips64-Test/69/140' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-x86_64-linux-qemu/build/llvm_build2_debug_mips64_qemu/lib/scudo/standalone/tests/./ScudoUnitTest-mips64-Test-ScudoStandalone-Unit-2255568-69-140.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=140 GTEST_SHARD_INDEX=69 /home/b/sanitizer-x86_64-linux-qemu/build/qemu_build/qemu-mips64 -L /usr/mips64-linux-gnuabi64 /home/b/sanitizer-x86_64-linux-qemu/build/llvm_build2_debug_mips64_qemu/lib/scudo/standalone/tests/./ScudoUnitTest-mips64-Test
--

Note: This is test shard 70 of 140.
[==========] Running 2 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 1 test from ScudoCombinedDeathTestBasicCombined14_AndroidConfig
[ RUN      ] ScudoCombinedDeathTestBasicCombined14_AndroidConfig.BasicCombined14
Stats: SizeClassAllocator64: 1M mapped (0M rss) in 19 allocations; remains 19; ReleaseToOsIntervalMs = 1000
  00 (    64): mapped:    256K popped:      13 pushed:       0 inuse:     13 total:    104 releases:      0 last released:      0K latest pushed bytes:      5K region: 0x555576869000 (0x555576868000)
  27 ( 16400): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases:      0 last released:      0K latest pushed bytes:    112K region: 0x5556a686d000 (0x5556a6868000)
  28 ( 18448): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases:      0 last released:      0K latest pushed bytes:    126K region: 0x555756874000 (0x555756868000)
  29 ( 23056): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases:      0 last released:      0K latest pushed bytes:    157K region: 0x55573686b000 (0x555736868000)
  30 ( 29456): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases:      0 last released:      0K latest pushed bytes:    201K region: 0x5556b6872000 (0x5556b6868000)
  31 ( 33296): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      7 releases:      0 last released:      0K latest pushed bytes:    195K region: 0x555656874000 (0x555656868000)
  32 ( 65552): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      3 releases:      0 last released:      0K latest pushed bytes:    128K region: 0x555686870000 (0x555686868000)
Stats: MapAllocator: allocated 65 times (6504K), freed 65 times (6504K), remains 0 (0K) max 0M, Fragmented 0K
Stats: MapAllocatorCache: EntriesCount: 32, MaxEntriesCount: 32, MaxEntrySize: 2097152, ReleaseToOsIntervalMs = 1000
Stats: CacheRetrievalStats: SuccessRate: 0/0 (100.00%)
Cache Entry Info (Most Recent -> Least Recent):
  StartBlockAddress: 0x5557670ef000, EndBlockAddress: 0x555767109000, BlockSize: 106496 
  StartBlockAddress: 0x5557670cf000, EndBlockAddress: 0x5557670e7000, BlockSize: 98304 
  StartBlockAddress: 0x5557670af000, EndBlockAddress: 0x5557670c5000, BlockSize: 90112 
  StartBlockAddress: 0x55576708f000, EndBlockAddress: 0x5557670a3000, BlockSize: 81920 
  StartBlockAddress: 0x55576706f000, EndBlockAddress: 0x555767081000, BlockSize: 73728 
  StartBlockAddress: 0x55576703f000, EndBlockAddress: 0x55576705f000, BlockSize: 131072 
  StartBlockAddress: 0x55576701f000, EndBlockAddress: 0x55576703d000, BlockSize: 122880 
  StartBlockAddress: 0x555766fff000, EndBlockAddress: 0x55576701b000, BlockSize: 114688 
  StartBlockAddress: 0x555766fdf000, EndBlockAddress: 0x555766ff9000, BlockSize: 106496 
  StartBlockAddress: 0x555766fbf000, EndBlockAddress: 0x555766fd7000, BlockSize: 98304 
  StartBlockAddress: 0x555766f9f000, EndBlockAddress: 0x555766fb5000, BlockSize: 90112 
  StartBlockAddress: 0x555766f7f000, EndBlockAddress: 0x555766f93000, BlockSize: 81920 
  StartBlockAddress: 0x555766f5f000, EndBlockAddress: 0x555766f71000, BlockSize: 73728 
  StartBlockAddress: 0x555766f2f000, EndBlockAddress: 0x555766f4f000, BlockSize: 131072 
  StartBlockAddress: 0x555766f0f000, EndBlockAddress: 0x555766f2d000, BlockSize: 122880 
  StartBlockAddress: 0x555766eef000, EndBlockAddress: 0x555766f0b000, BlockSize: 114688 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend:AMDGPU llvm:mc Machine (object) code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants