[llvm] [AMDGPU] Handled G_UBSANTRAP GlobalIsel (PR #134492)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 5 08:13:00 PDT 2025
================
@@ -0,0 +1,7 @@
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -global-isel < %s
+; LLVM ERROR: cannot select: G_UBSANTRAP 0 (in function: ubsan_trap)
+
+define void @ubsan_trap() {
+ call void @llvm.ubsantrap(i8 0)
+ ret void
+}
----------------
amansharma612 wrote:
@tgymnich Added the test in `GlobalIsel/` after updates. Thanks!
https://github.com/llvm/llvm-project/pull/134492
More information about the llvm-commits
mailing list