mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[ms] [llvm-ml] Disable C-style comments
This commit is contained in:
parent
b033502dd5
commit
7492c6b2fb
@ -144,6 +144,7 @@ X86MCAsmInfoMicrosoftMASM::X86MCAsmInfoMicrosoftMASM(const Triple &Triple)
|
|||||||
DollarIsPC = true;
|
DollarIsPC = true;
|
||||||
SeparatorString = "\n";
|
SeparatorString = "\n";
|
||||||
CommentString = ";";
|
CommentString = ";";
|
||||||
|
AllowAdditionalComments = false;
|
||||||
AllowQuestionAtStartOfIdentifier = true;
|
AllowQuestionAtStartOfIdentifier = true;
|
||||||
AllowDollarAtStartOfIdentifier = true;
|
AllowDollarAtStartOfIdentifier = true;
|
||||||
AllowAtAtStartOfIdentifier = true;
|
AllowAtAtStartOfIdentifier = true;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.data
|
.data
|
||||||
BYTE 2, 4, 6, 8
|
BYTE 2, 4, 6, 8
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.data
|
.data
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.data
|
.data
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -filetype=s %s /I %S /Fo - | FileCheck %s
|
; RUN: llvm-ml -filetype=s %s /I %S /Fo - | FileCheck %s
|
||||||
|
|
||||||
include included.inc
|
include included.inc
|
||||||
|
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.code
|
.code
|
||||||
|
|
||||||
t1:
|
t1:
|
||||||
mov eax, \
|
mov eax, \
|
||||||
ebx
|
ebx
|
||||||
# CHECK: t1:
|
; CHECK: t1:
|
||||||
# CHECK-NEXT: mov eax, ebx
|
; CHECK-NEXT: mov eax, ebx
|
||||||
|
|
||||||
t2:
|
t2:
|
||||||
mov eax, [ebx + \
|
mov eax, [ebx + \
|
||||||
1]
|
1]
|
||||||
# CHECK: t2:
|
; CHECK: t2:
|
||||||
# CHECK-NEXT: mov eax, dword ptr [ebx + 1]
|
; CHECK-NEXT: mov eax, dword ptr [ebx + 1]
|
||||||
|
|
||||||
END
|
END
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.386p
|
.386p
|
||||||
.model flat
|
.model flat
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s
|
||||||
# RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.code
|
.code
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.code
|
.code
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.code
|
.code
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.code
|
.code
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s --check-prefix=CHECK-32
|
; RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s --check-prefix=CHECK-32
|
||||||
# RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s --check-prefix=CHECK-64
|
; RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s --check-prefix=CHECK-64
|
||||||
|
|
||||||
.code
|
.code
|
||||||
mov eax, [4]
|
mov eax, [4]
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# RUN: llvm-ml --help | FileCheck %s
|
; RUN: llvm-ml --help | FileCheck %s
|
||||||
|
|
||||||
# CHECK: USAGE: llvm-ml
|
; CHECK: USAGE: llvm-ml
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.data
|
.data
|
||||||
BAZ STRUCT
|
BAZ STRUCT
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: not llvm-ml -filetype=s %s /Fo /dev/null 2>&1 | FileCheck %s --dump-input=always
|
; RUN: not llvm-ml -filetype=s %s /Fo /dev/null 2>&1 | FileCheck %s --dump-input=always
|
||||||
|
|
||||||
.data
|
.data
|
||||||
int_test STRUCT
|
int_test STRUCT
|
||||||
@ -7,13 +7,13 @@ int_test STRUCT
|
|||||||
int_test ENDS
|
int_test ENDS
|
||||||
|
|
||||||
t1 int_test <<1,2,3>>
|
t1 int_test <<1,2,3>>
|
||||||
// CHECK: error: Initializer too long for field; expected at most 2 elements, got 3
|
; CHECK: error: Initializer too long for field; expected at most 2 elements, got 3
|
||||||
|
|
||||||
t2 int_test <4>
|
t2 int_test <4>
|
||||||
// CHECK: error: Cannot initialize array field with scalar value
|
; CHECK: error: Cannot initialize array field with scalar value
|
||||||
|
|
||||||
t3 int_test <,<5,6>>
|
t3 int_test <,<5,6>>
|
||||||
// CHECK: error: Cannot initialize scalar field with array value
|
; CHECK: error: Cannot initialize scalar field with array value
|
||||||
|
|
||||||
real_test STRUCT
|
real_test STRUCT
|
||||||
real_arr REAL4 ?, ?, ?
|
real_arr REAL4 ?, ?, ?
|
||||||
@ -21,13 +21,13 @@ real_test STRUCT
|
|||||||
real_test ENDS
|
real_test ENDS
|
||||||
|
|
||||||
t4 real_test <<1.0,0.0,-1.0,-2.0>>
|
t4 real_test <<1.0,0.0,-1.0,-2.0>>
|
||||||
// CHECK: error: Initializer too long for field; expected at most 3 elements, got 4
|
; CHECK: error: Initializer too long for field; expected at most 3 elements, got 4
|
||||||
|
|
||||||
t5 real_test <2.0>
|
t5 real_test <2.0>
|
||||||
// CHECK: error: Cannot initialize array field with scalar value
|
; CHECK: error: Cannot initialize array field with scalar value
|
||||||
|
|
||||||
t6 real_test <,<2.0,-2.0>>
|
t6 real_test <,<2.0,-2.0>>
|
||||||
// CHECK: error: Cannot initialize scalar field with array value
|
; CHECK: error: Cannot initialize scalar field with array value
|
||||||
|
|
||||||
inner_struct STRUCT
|
inner_struct STRUCT
|
||||||
a BYTE ?
|
a BYTE ?
|
||||||
@ -39,19 +39,19 @@ struct_test STRUCT
|
|||||||
struct_test ENDS
|
struct_test ENDS
|
||||||
|
|
||||||
t7 struct_test <<<>, <>, <>, <>, <>>>
|
t7 struct_test <<<>, <>, <>, <>, <>>>
|
||||||
// CHECK: error: Initializer too long for field; expected at most 4 elements, got 5
|
; CHECK: error: Initializer too long for field; expected at most 4 elements, got 5
|
||||||
|
|
||||||
t8 struct_test <,<<>, <>>>
|
t8 struct_test <,<<>, <>>>
|
||||||
// CHECK: error: 'inner_struct' initializer initializes too many fields
|
; CHECK: error: 'inner_struct' initializer initializes too many fields
|
||||||
|
|
||||||
t9 STRUCT 3
|
t9 STRUCT 3
|
||||||
// CHECK: error: alignment must be a power of two; was 3
|
; CHECK: error: alignment must be a power of two; was 3
|
||||||
t9 ENDS
|
t9 ENDS
|
||||||
|
|
||||||
t10 STRUCT 1, X
|
t10 STRUCT 1, X
|
||||||
// CHECK: error: Unrecognized qualifier for 'STRUCT' directive; expected none or NONUNIQUE
|
; CHECK: error: Unrecognized qualifier for 'STRUCT' directive; expected none or NONUNIQUE
|
||||||
t10 ENDS
|
t10 ENDS
|
||||||
|
|
||||||
t11 STRUCT
|
t11 STRUCT
|
||||||
different_struct ENDS
|
different_struct ENDS
|
||||||
// CHECK: error: mismatched name in ENDS directive; expected 't11'
|
; CHECK: error: mismatched name in ENDS directive; expected 't11'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.data
|
.data
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||||
|
|
||||||
.data
|
.data
|
||||||
t1_value equ 1 or 2
|
t1_value equ 1 or 2
|
||||||
|
Loading…
Reference in New Issue
Block a user