mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
8382ecd17d
As the actual MSVC toolset doesn't use the GAS-style assembly that Clang/LLVM produces and consumes, there's no reference for what string to use for e.g. comments when building with a MSVC triple. This frees up the use of semicolon as separator string, just like was done for GNU targets in 23413195649d0cf6f3860ae8b5fb115b35032075. (Previously, both the separator and comment strings were set to the same, a semicolon.) Compiler-rt extensively uses separator chars in its assembly, and that assembly should be buildable with clang-cl for MSVC too. Differential Revision: https://reviews.llvm.org/D96259
14 lines
470 B
ArmAsm
14 lines
470 B
ArmAsm
// RUN: llvm-mc -triple aarch64-windows-gnu -filetype obj -o %t.obj %s
|
|
// RUN: llvm-objdump -d %t.obj | FileCheck %s
|
|
// RUN: llvm-mc -triple aarch64-windows-msvc -filetype obj -o %t.obj %s
|
|
// RUN: llvm-objdump -d %t.obj | FileCheck %s
|
|
|
|
func:
|
|
// Check that the nop instruction after the semicolon also is handled
|
|
nop; nop
|
|
add x0, x0, #42
|
|
|
|
// CHECK: 0: 1f 20 03 d5 nop
|
|
// CHECK: 4: 1f 20 03 d5 nop
|
|
// CHECK: 8: 00 a8 00 91 add x0, x0, #42
|