xref: /llvm-project-15.0.7/llvm/test/MC/Mips/set-softfloat-hardfloat-bad.s (revision 2969650e)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32 -mattr=+soft-float 2>%t1
2# RUN: FileCheck %s < %t1
3
4  .set hardfloat
5  add.s $f2, $f2, $f2
6  # CHECK-NOT: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
7  sub.s $f2, $f2, $f2
8  # CHECK-NOT: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
9
10  .set softfloat
11  add.s $f2, $f2, $f2
12  # CHECK: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
13  sub.s $f2, $f2, $f2
14  # CHECK: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
15

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026