diff options
author | Wei Ding <wei.ding2@amd.com> | 2017-02-22 20:05:06 +0000 |
---|---|---|
committer | Wei Ding <wei.ding2@amd.com> | 2017-02-22 20:05:06 +0000 |
commit | 4991d3570f254ef2ddba14a6b9638998227b5199 (patch) | |
tree | 3ecd9711cc6bb6fffa7685a2c7d7697d707be087 /llvm/test | |
parent | 4ae5ec8268a54d698af32c0309526c50a5443d11 (diff) | |
download | bcm5719-llvm-4991d3570f254ef2ddba14a6b9638998227b5199.tar.gz bcm5719-llvm-4991d3570f254ef2ddba14a6b9638998227b5199.zip |
AMDGPU : Update TrapCode based on Trap Handler ABI.
Differential Revision: http://reviews.llvm.org/D30232
llvm-svn: 295867
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/trap.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/trap.ll b/llvm/test/CodeGen/AMDGPU/trap.ll index 5c3e1ee0b3f..15f055e8c2b 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 1 +; HSA-TRAP: s_trap 2 ; 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 2 +; HSA-TRAP: s_trap 3 ; for llvm.debugtrap in non-hsa path without ABI, generate a warning and a s_endpgm instruction ; NO-HSA-TRAP: enable_trap_handler = 0 |