[llvm] [clang] [AMDGPU] Add code model (#70760) test for amdgpu target. (PR #71019)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 08:38:06 PDT 2023


================
@@ -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
----------------
yxsamliu wrote:

need test for all -code-model values

https://github.com/llvm/llvm-project/pull/71019


More information about the cfe-commits mailing list