[llvm] [AMDGPU] Add code model (#70760) test for amdgpu target. (PR #71019)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 1 22:13:35 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Pravin Jagtap (pravinjagtap)
<details>
<summary>Changes</summary>
Missed adding code model test during #<!-- -->70760.
---
Full diff: https://github.com/llvm/llvm-project/pull/71019.diff
1 Files Affected:
- (added) llvm/test/CodeGen/AMDGPU/codemodel.ll (+9)
``````````diff
diff --git a/llvm/test/CodeGen/AMDGPU/codemodel.ll b/llvm/test/CodeGen/AMDGPU/codemodel.ll
new file mode 100644
index 000000000000000..8b60257b2076aed
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/codemodel.ll
@@ -0,0 +1,9 @@
+; RUN: not llc -verify-machineinstrs -o - -mtriple=amdgcn-unknown-amdhsa -mcpu=gfx900 -code-model=tiny < %s 2>&1 | FileCheck %s --check-prefix=TINY
+; RUN: not llc -verify-machineinstrs -o - -mtriple=amdgcn-unknown-amdhsa -mcpu=gfx900 -code-model=kernel < %s 2>&1 | FileCheck %s --check-prefix=KERNEL
+
+; TINY: Target does not support the tiny CodeModel
+; KERNEL: Target does not support the kernel CodeModel
+
+define void @foo() {
+ ret void
+}
``````````
</details>
https://github.com/llvm/llvm-project/pull/71019
More information about the llvm-commits
mailing list