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;
|
||||
SeparatorString = "\n";
|
||||
CommentString = ";";
|
||||
AllowAdditionalComments = false;
|
||||
AllowQuestionAtStartOfIdentifier = true;
|
||||
AllowDollarAtStartOfIdentifier = 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
|
||||
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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,17 +1,17 @@
|
||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||
|
||||
.code
|
||||
|
||||
t1:
|
||||
mov eax, \
|
||||
ebx
|
||||
# CHECK: t1:
|
||||
# CHECK-NEXT: mov eax, ebx
|
||||
; CHECK: t1:
|
||||
; CHECK-NEXT: mov eax, ebx
|
||||
|
||||
t2:
|
||||
mov eax, [ebx + \
|
||||
1]
|
||||
# CHECK: t2:
|
||||
# CHECK-NEXT: mov eax, dword ptr [ebx + 1]
|
||||
; CHECK: t2:
|
||||
; CHECK-NEXT: mov eax, dword ptr [ebx + 1]
|
||||
|
||||
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
|
||||
.model flat
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s
|
||||
# RUN: llvm-ml -m64 -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
|
||||
|
||||
.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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||
|
||||
.code
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||
|
||||
.code
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# 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 -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
|
||||
|
||||
.code
|
||||
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
|
||||
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
|
||||
int_test STRUCT
|
||||
@ -7,13 +7,13 @@ int_test STRUCT
|
||||
int_test ENDS
|
||||
|
||||
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>
|
||||
// CHECK: error: Cannot initialize array field with scalar value
|
||||
; CHECK: error: Cannot initialize array field with scalar value
|
||||
|
||||
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_arr REAL4 ?, ?, ?
|
||||
@ -21,13 +21,13 @@ real_test STRUCT
|
||||
real_test ENDS
|
||||
|
||||
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>
|
||||
// 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>>
|
||||
// CHECK: error: Cannot initialize scalar field with array value
|
||||
; CHECK: error: Cannot initialize scalar field with array value
|
||||
|
||||
inner_struct STRUCT
|
||||
a BYTE ?
|
||||
@ -39,19 +39,19 @@ struct_test STRUCT
|
||||
struct_test ENDS
|
||||
|
||||
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 <,<<>, <>>>
|
||||
// CHECK: error: 'inner_struct' initializer initializes too many fields
|
||||
; CHECK: error: 'inner_struct' initializer initializes too many fields
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
t11 STRUCT
|
||||
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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
||||
|
||||
.data
|
||||
t1_value equ 1 or 2
|
||||
|
Loading…
Reference in New Issue
Block a user