mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
a5f14070fa
Summary: These directives are used to set the current value of the SoftFloat feature. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits, mpf Differential Revision: http://reviews.llvm.org/D9074 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238813 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
609 B
ArmAsm
15 lines
609 B
ArmAsm
# RUN: not llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32 -mattr=+soft-float 2>%t1
|
|
# RUN: FileCheck %s < %t1
|
|
|
|
.set hardfloat
|
|
add.s $f2, $f2, $f2
|
|
# CHECK-NOT: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
|
|
sub.s $f2, $f2, $f2
|
|
# CHECK-NOT: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
|
|
|
|
.set softfloat
|
|
add.s $f2, $f2, $f2
|
|
# CHECK: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
|
|
sub.s $f2, $f2, $f2
|
|
# CHECK: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
|