Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "llvm/IR/Module.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/VersionTuple.h"
#include "llvm/TargetParser/Triple.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ attributes #0 = { convergent norecurse nounwind "hlsl.export"}
; CHECK: - Name: SFI0
; CHECK-NEXT: Size: 8
; CHECK-NEXT: Flags:
; CHECK-NEXT: Doubles: true
; CHECK-NOT: {{[A-Za-z]+: +true}}
; CHECK: Doubles: true
; CHECK: DX11_1_DoubleExtensions: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be nice to have consistent whitespace across the check lines


18 changes: 7 additions & 11 deletions llvm/test/CodeGen/DirectX/ShaderFlags/double-extensions.ll
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,39 @@ target triple = "dxil-pc-shadermodel6.7-library"

; CHECK: ; Combined Shader Flags for Module
; CHECK-NEXT: ; Shader Flags Value: 0x00000044
; CHECK-NEXT: ;
; CHECK-NEXT: ; Note: shader requires additional functionality:

; CHECK: ; Note: shader requires additional functionality:
; CHECK-NEXT: ; Double-precision floating point
; CHECK-NEXT: ; Double-precision extensions for 11.1
; CHECK-NEXT: ; Note: extra DXIL module flags:
; CHECK-NEXT: ;
; CHECK-NEXT: ; Shader Flags for Module Functions
; CHECK-NEXT: ; Function test_fdiv_double : 0x00000044
; CHECK-NEXT: ;
; CHECK-NEXT: ; Function test_uitofp_i64 : 0x00000044
; CHECK-NEXT: ;
; CHECK-NEXT: ; Function test_sitofp_i64 : 0x00000044
; CHECK-NEXT: ;
; CHECK-NEXT: ; Function test_fptoui_i32 : 0x00000044
; CHECK-NEXT: ;
; CHECK-NEXT: ; Function test_fptosi_i64 : 0x00000044

; CHECK: ; Function test_fdiv_double : 0x00000044
define double @test_fdiv_double(double %a, double %b) #0 {
%res = fdiv double %a, %b
ret double %res
}

; CHECK: ; Function test_uitofp_i64 : 0x00000044
define double @test_uitofp_i64(i64 %a) #0 {
%r = uitofp i64 %a to double
ret double %r
}

; CHECK: ; Function test_sitofp_i64 : 0x00000044
define double @test_sitofp_i64(i64 %a) #0 {
%r = sitofp i64 %a to double
ret double %r
}

; CHECK: ; Function test_fptoui_i32 : 0x00000044
define i32 @test_fptoui_i32(double %a) #0 {
%r = fptoui double %a to i32
ret i32 %r
}

; CHECK: ; Function test_fptosi_i64 : 0x00000044
define i64 @test_fptosi_i64(double %a) #0 {
%r = fptosi double %a to i64
ret i64 %r
Expand Down