mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
8e8b0ba38b
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252908 91177308-0d34-0410-b5e6-96231b3b80d8
32 lines
582 B
ArmAsm
32 lines
582 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)
|
|
|
|
_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)
|