[NFC] legalize triple for dxil tests.

This commit is contained in:
Xiang Li 2022-09-26 18:08:41 -07:00
parent aba150ca23
commit 208d0f04a6
14 changed files with 15 additions and 15 deletions

View File

@ -1,5 +1,5 @@
; RUN: llc --filetype=asm %s -o - | FileCheck %s ; 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) { define i64 @test(ptr %p) {
store i32 0, ptr %p store i32 0, ptr %p

View File

@ -1,5 +1,5 @@
; RUN: llc %s --filetype=asm -o - | FileCheck %s ; 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) { define float @negateF(float %0) {
; CHECK: %2 = fsub float -0.000000e+00, %0 ; CHECK: %2 = fsub float -0.000000e+00, %0

View File

@ -1,5 +1,5 @@
; RUN: llc --filetype=asm %s -o - | FileCheck %s ; 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) { define i64 @test(ptr %p) {
%v = load i64, ptr %p %v = load i64, ptr %p

View File

@ -1,5 +1,5 @@
; RUN: llc %s --filetype=asm -o - | FileCheck %s ; 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 ; CHECK: Function Attrs: nounwind readnone
; Function Attrs: norecurse nounwind readnone willreturn ; Function Attrs: norecurse nounwind readnone willreturn

View File

@ -6,7 +6,7 @@
; CHECK: ret i32 %Q ; CHECK: ret i32 %Q
; CHECK: } ; CHECK: }
target triple = "dxil-unknown-unknown" target triple = "dxil-unknown-shadermodel6.7-library"
define i32 @foo(i32 %X, i32 %Y) { define i32 @foo(i32 %X, i32 %Y) {
%Z = sub i32 %X, %Y %Z = sub i32 %X, %Y

View File

@ -1,7 +1,7 @@
; RUN: llc %s --filetype=obj -o - | dxil-dis -o - | FileCheck %s ; RUN: llc %s --filetype=obj -o - | dxil-dis -o - | FileCheck %s
; CHECK: target triple = "dxil-unknown-unknown" ; CHECK: target triple = "dxil-unknown-shadermodel6.7-library"
target triple = "dxil-unknown-unknown" target triple = "dxil-unknown-shadermodel6.7-library"
; CHECK: Function Attrs: nounwind readnone ; CHECK: Function Attrs: nounwind readnone
; Function Attrs: norecurse nounwind readnone willreturn ; Function Attrs: norecurse nounwind readnone willreturn

View File

@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s ; 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" 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]+]] ; CHECK: define float @fma(float, float, float) unnamed_addr #0 !dbg [[Fn:[!][0-9]+]]

View File

@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s ; 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.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4} !llvm.module.flags = !{!3, !4}

View File

@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s ; 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.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4} !llvm.module.flags = !{!3, !4}

View File

@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s ; 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} !llvm.used = !{!0}

View File

@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis ; RUN: llc --filetype=obj %s -o - | dxil-dis
target triple = "dxil-unknown-unknown" target triple = "dxil-unknown-shadermodel6.7-library"
!llvm.foo = !{!0} !llvm.foo = !{!0}
!llvm.bar = !{!1} !llvm.bar = !{!1}

View File

@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s ; 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) { define i32 @fn(ptr %0) {
%2 = getelementptr i32, ptr %0, i32 4 %2 = getelementptr i32, ptr %0, i32 4

View File

@ -1,5 +1,5 @@
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s ; 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) { define i64 @test(ptr %p) {
store i32 0, ptr %p store i32 0, ptr %p

View File

@ -1,6 +1,6 @@
; RUN: llc --filetype=obj %s -o - 2>&1 | dxil-dis -o - | FileCheck %s ; 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 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 } %"$Globals" = type { float }