1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/MC/AArch64/coff-gnu.s
Martin Storsjo 0a00e5ecac [COFF, ARM64] Use '//' as comment character in assembly files in GNU environments
This allows using semicolons for bundling up more than one
statement per line. This is used within the mingw-w64 project in some
assembly files that contain code for multiple architectures.

Differential Revision: https://reviews.llvm.org/D36366

llvm-svn: 310797
2017-08-13 19:42:05 +00:00

12 lines
352 B
ArmAsm

// RUN: llvm-mc -triple aarch64-windows-gnu -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