summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/trap.ll
diff options
context:
space:
mode:
authorWei Ding <wei.ding2@amd.com>2017-02-22 20:29:22 +0000
committerWei Ding <wei.ding2@amd.com>2017-02-22 20:29:22 +0000
commit6ade56e0a02800c8d7eb17dc894d9ef4869c8c79 (patch)
tree34f696943ad10ed3c57bc092de75ac12d7579aba /llvm/test/CodeGen/AMDGPU/trap.ll
parentf203dbfba9044987ea4af679ab697c1378c4fdaf (diff)
downloadbcm5719-llvm-6ade56e0a02800c8d7eb17dc894d9ef4869c8c79.tar.gz
bcm5719-llvm-6ade56e0a02800c8d7eb17dc894d9ef4869c8c79.zip
Revert "AMDGPU : Update TrapCode based on Trap Handler ABI."
This reverts commit r295867. llvm-svn: 295871
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/trap.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/trap.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/trap.ll b/llvm/test/CodeGen/AMDGPU/trap.ll
index 15f055e8c2b..5c3e1ee0b3f 100644
--- a/llvm/test/CodeGen/AMDGPU/trap.ll
+++ b/llvm/test/CodeGen/AMDGPU/trap.ll
@@ -28,7 +28,7 @@ declare void @llvm.debugtrap() #0
; GCN-LABEL: {{^}}hsa_trap:
; HSA-TRAP: enable_trap_handler = 1
; HSA-TRAP: s_mov_b64 s[0:1], s[4:5]
-; HSA-TRAP: s_trap 2
+; HSA-TRAP: s_trap 1
; for llvm.trap in hsa path without ABI, direct generate s_endpgm instruction without any warning information
; NO-HSA-TRAP: enable_trap_handler = 0
@@ -55,7 +55,7 @@ define void @hsa_trap() {
; GCN-LABEL: {{^}}hsa_debugtrap:
; HSA-TRAP: enable_trap_handler = 1
; HSA-TRAP: s_mov_b64 s[0:1], s[4:5]
-; HSA-TRAP: s_trap 3
+; HSA-TRAP: s_trap 2
; for llvm.debugtrap in non-hsa path without ABI, generate a warning and a s_endpgm instruction
; NO-HSA-TRAP: enable_trap_handler = 0
OpenPOWER on IntegriCloud