2012-09-11 04:54:39 +08:00
|
|
|
// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=att %s | FileCheck %s
|
2012-01-31 04:02:42 +08:00
|
|
|
|
|
|
|
.intel_syntax
|
|
|
|
_test:
|
|
|
|
// CHECK: movl $257, -4(%rsp)
|
|
|
|
mov DWORD PTR [RSP - 4], 257
|
2012-09-11 04:54:39 +08:00
|
|
|
.att_syntax
|
|
|
|
// CHECK: movl $257, -4(%rsp)
|
2012-09-11 07:09:27 +08:00
|
|
|
movl $257, -4(%rsp)
|
2014-08-07 07:21:13 +08:00
|
|
|
|
|
|
|
_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)
|
[x86] translating "fp" (floating point) instructions from {fadd,fdiv,fmul,fsub,fsubr,fdivr} to {faddp,fdivp,fmulp,fsubp,fsubrp,fdivrp}
LLVM Missing the following instructions: fadd\fdiv\fmul\fsub\fsubr\fdivr.
GAS and MS supporting this instruction and lowering them in to a faddp\fdivp\fmulp\fsubp\fsubrp\fdivrp instructions.
Differential Revision: http://reviews.llvm.org/D14217
llvm-svn: 252908
2015-11-13 00:58:51 +08:00
|
|
|
|
|
|
|
_test3:
|
|
|
|
fadd
|
|
|
|
// CHECK: faddp %st(1)
|
|
|
|
fmul
|
|
|
|
// CHECK: fmulp %st(1)
|
|
|
|
fsub
|
|
|
|
// CHECK: fsubp %st(1)
|
|
|
|
fsubr
|
|
|
|
// CHECK: fsubrp %st(1)
|
|
|
|
fdiv
|
|
|
|
// CHECK: fdivp %st(1)
|
|
|
|
fdivr
|
|
|
|
// CHECK: fdivrp %st(1)
|