Skip to content

Commit

Permalink
[NFC] legalize triple for dxil tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
python3kgae committed Sep 27, 2022
1 parent aba150c commit 208d0f0
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/dxil-dis/BasicIR.ll
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions 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
Expand Down
2 changes: 1 addition & 1 deletion 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]+]]
Expand Down
2 changes: 1 addition & 1 deletion 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}
Expand Down
2 changes: 1 addition & 1 deletion 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}
Expand Down
2 changes: 1 addition & 1 deletion 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}

Expand Down
2 changes: 1 addition & 1 deletion 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}
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion 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 }

Expand Down

0 comments on commit 208d0f0

Please sign in to comment.