mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
f0567dde14
Fixes PR18916. I don't think we need to implement support for either hybrid syntax. Nobody should write Intel assembly with '%' prefixes on their registers or AT&T assembly without them. llvm-svn: 215031
18 lines
400 B
ArmAsm
18 lines
400 B
ArmAsm
// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=att %s | FileCheck %s
|
|
|
|
.intel_syntax
|
|
_test:
|
|
// CHECK: movl $257, -4(%rsp)
|
|
mov DWORD PTR [RSP - 4], 257
|
|
.att_syntax
|
|
// CHECK: movl $257, -4(%rsp)
|
|
movl $257, -4(%rsp)
|
|
|
|
_test2:
|
|
.intel_syntax noprefix
|
|
mov DWORD PTR [RSP - 4], 255
|
|
// CHECK: movl $255, -4(%rsp)
|
|
.att_syntax prefix
|
|
movl $255, -4(%rsp)
|
|
// CHECK: movl $255, -4(%rsp)
|