소스 검색

Merged PR 114: Fix error in kLegacyDataLayoutString replace f:64 with f64.

Fix error in kLegacyDataLayoutString replace f:64 with f64.
Tex Riddell 7 년 전
부모
커밋
80e1839f24
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      lib/HLSL/DxilModule.cpp
  2. 1 1
      tools/clang/test/CodeGenHLSL/dataLayout.hlsl

+ 1 - 1
lib/HLSL/DxilModule.cpp

@@ -60,7 +60,7 @@ namespace DXIL {
 //      - Keep elf manging(m:e)?
 
 // For legacy data layout, everything less than 32 align to 32.
-const char* kLegacyLayoutString = "e-m:e-p:32:32-i1:32-i8:32-i16:32-i32:32-i64:64-f16:32-f32:32-f:64:64-n8:16:32:64";
+const char* kLegacyLayoutString = "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";
 
 // New data layout with native low precision types
 const char* kNewLayoutString = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64";

+ 1 - 1
tools/clang/test/CodeGenHLSL/dataLayout.hlsl

@@ -1,6 +1,6 @@
 // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
 
-// CHECK: target datalayout = "e-m:e-p:32:32-i1:32-i8:32-i16:32-i32:32-i64:64-f16:32-f32:32-f:64:64-n8:16:32:64"
+// CHECK: 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"
 
 float4 main(float4 a : A) : SV_Target {
   return 1;