[llvm] 208d0f0 - [NFC] legalize triple for dxil tests.
Xiang Li via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 26 18:11:25 PDT 2022
Author: Xiang Li
Date: 2022-09-26T18:09:33-07:00
New Revision: 208d0f04a62f9a444d42394c05a6b3e4cc78136b
URL: https://github.com/llvm/llvm-project/commit/208d0f04a62f9a444d42394c05a6b3e4cc78136b
DIFF: https://github.com/llvm/llvm-project/commit/208d0f04a62f9a444d42394c05a6b3e4cc78136b.diff
LOG: [NFC] legalize triple for dxil tests.
Added:
Modified:
llvm/test/CodeGen/DirectX/conflicting-bitcast-insert.ll
llvm/test/CodeGen/DirectX/fneg-conversion.ll
llvm/test/CodeGen/DirectX/omit-bitcast-insert.ll
llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
llvm/test/tools/dxil-dis/BasicIR.ll
llvm/test/tools/dxil-dis/attribute-filter.ll
llvm/test/tools/dxil-dis/debug-info.ll
llvm/test/tools/dxil-dis/di-compile-unit.ll
llvm/test/tools/dxil-dis/di-subprogram.ll
llvm/test/tools/dxil-dis/di-subrotine.ll
llvm/test/tools/dxil-dis/metadata.ll
llvm/test/tools/dxil-dis/opaque-gep.ll
llvm/test/tools/dxil-dis/opaque-pointers.ll
llvm/test/tools/dxil-dis/opaque-value_as_metadata.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/DirectX/conflicting-bitcast-insert.ll b/llvm/test/CodeGen/DirectX/conflicting-bitcast-insert.ll
index 76f2162c117bc..01084f285cd72 100644
--- a/llvm/test/CodeGen/DirectX/conflicting-bitcast-insert.ll
+++ b/llvm/test/CodeGen/DirectX/conflicting-bitcast-insert.ll
@@ -1,5 +1,5 @@
; RUN: llc --filetype=asm %s -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
define i64 @test(ptr %p) {
store i32 0, ptr %p
diff --git a/llvm/test/CodeGen/DirectX/fneg-conversion.ll b/llvm/test/CodeGen/DirectX/fneg-conversion.ll
index 2947e738807a2..a397c18398c5f 100644
--- a/llvm/test/CodeGen/DirectX/fneg-conversion.ll
+++ b/llvm/test/CodeGen/DirectX/fneg-conversion.ll
@@ -1,5 +1,5 @@
; RUN: llc %s --filetype=asm -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
define float @negateF(float %0) {
; CHECK: %2 = fsub float -0.000000e+00, %0
diff --git a/llvm/test/CodeGen/DirectX/omit-bitcast-insert.ll b/llvm/test/CodeGen/DirectX/omit-bitcast-insert.ll
index 4b495b993800a..73c33e8cfdd86 100644
--- a/llvm/test/CodeGen/DirectX/omit-bitcast-insert.ll
+++ b/llvm/test/CodeGen/DirectX/omit-bitcast-insert.ll
@@ -1,5 +1,5 @@
; RUN: llc --filetype=asm %s -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
define i64 @test(ptr %p) {
%v = load i64, ptr %p
diff --git a/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll b/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
index 53eb5e2507912..c1c7e2fab1d23 100644
--- a/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
+++ b/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
@@ -1,5 +1,5 @@
; RUN: llc %s --filetype=asm -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
; CHECK: Function Attrs: nounwind readnone
; Function Attrs: norecurse nounwind readnone willreturn
diff --git a/llvm/test/tools/dxil-dis/BasicIR.ll b/llvm/test/tools/dxil-dis/BasicIR.ll
index f5602086008c8..a08537d16abb5 100644
--- a/llvm/test/tools/dxil-dis/BasicIR.ll
+++ b/llvm/test/tools/dxil-dis/BasicIR.ll
@@ -6,7 +6,7 @@
; CHECK: ret i32 %Q
; CHECK: }
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
define i32 @foo(i32 %X, i32 %Y) {
%Z = sub i32 %X, %Y
diff --git a/llvm/test/tools/dxil-dis/attribute-filter.ll b/llvm/test/tools/dxil-dis/attribute-filter.ll
index 8957eb784012b..3ce3b0e03c36a 100644
--- a/llvm/test/tools/dxil-dis/attribute-filter.ll
+++ b/llvm/test/tools/dxil-dis/attribute-filter.ll
@@ -1,7 +1,7 @@
; RUN: llc %s --filetype=obj -o - | dxil-dis -o - | FileCheck %s
-; CHECK: target triple = "dxil-unknown-unknown"
-target triple = "dxil-unknown-unknown"
+; CHECK: target triple = "dxil-unknown-shadermodel6.7-library"
+target triple = "dxil-unknown-shadermodel6.7-library"
; CHECK: Function Attrs: nounwind readnone
; Function Attrs: norecurse nounwind readnone willreturn
diff --git a/llvm/test/tools/dxil-dis/debug-info.ll b/llvm/test/tools/dxil-dis/debug-info.ll
index d700537ccf10e..92dc65481e825 100644
--- a/llvm/test/tools/dxil-dis/debug-info.ll
+++ b/llvm/test/tools/dxil-dis/debug-info.ll
@@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
; CHECK: define float @fma(float, float, float) unnamed_addr #0 !dbg [[Fn:[!][0-9]+]]
diff --git a/llvm/test/tools/dxil-dis/di-compile-unit.ll b/llvm/test/tools/dxil-dis/di-compile-unit.ll
index 724fed1323130..11ad2c43d0d8a 100644
--- a/llvm/test/tools/dxil-dis/di-compile-unit.ll
+++ b/llvm/test/tools/dxil-dis/di-compile-unit.ll
@@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4}
diff --git a/llvm/test/tools/dxil-dis/di-subprogram.ll b/llvm/test/tools/dxil-dis/di-subprogram.ll
index 056319d40ff9f..1ed561c99f60d 100644
--- a/llvm/test/tools/dxil-dis/di-subprogram.ll
+++ b/llvm/test/tools/dxil-dis/di-subprogram.ll
@@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4}
diff --git a/llvm/test/tools/dxil-dis/di-subrotine.ll b/llvm/test/tools/dxil-dis/di-subrotine.ll
index dfb772a94ce17..285e319b74056 100644
--- a/llvm/test/tools/dxil-dis/di-subrotine.ll
+++ b/llvm/test/tools/dxil-dis/di-subrotine.ll
@@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
!llvm.used = !{!0}
diff --git a/llvm/test/tools/dxil-dis/metadata.ll b/llvm/test/tools/dxil-dis/metadata.ll
index 54f7940eba103..758860a2deb8f 100644
--- a/llvm/test/tools/dxil-dis/metadata.ll
+++ b/llvm/test/tools/dxil-dis/metadata.ll
@@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
!llvm.foo = !{!0}
!llvm.bar = !{!1}
diff --git a/llvm/test/tools/dxil-dis/opaque-gep.ll b/llvm/test/tools/dxil-dis/opaque-gep.ll
index fd3f608fac015..abec0955f5a6d 100644
--- a/llvm/test/tools/dxil-dis/opaque-gep.ll
+++ b/llvm/test/tools/dxil-dis/opaque-gep.ll
@@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
define i32 @fn(ptr %0) {
%2 = getelementptr i32, ptr %0, i32 4
diff --git a/llvm/test/tools/dxil-dis/opaque-pointers.ll b/llvm/test/tools/dxil-dis/opaque-pointers.ll
index 4e63b23ab1650..81f6a4ca97f61 100644
--- a/llvm/test/tools/dxil-dis/opaque-pointers.ll
+++ b/llvm/test/tools/dxil-dis/opaque-pointers.ll
@@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s
-target triple = "dxil-unknown-unknown"
+target triple = "dxil-unknown-shadermodel6.7-library"
define i64 @test(ptr %p) {
store i32 0, ptr %p
diff --git a/llvm/test/tools/dxil-dis/opaque-value_as_metadata.ll b/llvm/test/tools/dxil-dis/opaque-value_as_metadata.ll
index 9645db685d51c..fab4d1cfcb058 100644
--- a/llvm/test/tools/dxil-dis/opaque-value_as_metadata.ll
+++ b/llvm/test/tools/dxil-dis/opaque-value_as_metadata.ll
@@ -1,6 +1,6 @@
; RUN: llc --filetype=obj %s -o - 2>&1 | dxil-dis -o - | FileCheck %s
target datalayout = "e-m:e-p:32:32-i1:32-i8:32-i16:32-i32:32-i64:64-f16:32-f32:32-f64:64-n8:16:32:64"
-target triple = "dxil-ms-dx"
+target triple = "dxil-unknown-shadermodel6.7-library"
%"$Globals" = type { float }
More information about the llvm-commits
mailing list