summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/macro-ddivu-bad.s
blob: 7a6c7e0bd528a9c063c4a54669a1c796642f95aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r6 2>&1 | \
# RUN: FileCheck %s --check-prefix=R6
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64r6 2>&1 | \
# RUN: FileCheck %s --check-prefix=R6
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 2>&1 | \
# RUN: FileCheck %s --check-prefix=NOT-R6
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 2>&1 | \
# RUN: FileCheck %s --check-prefix=NOT-R6

  .text
  ddivu $25, $11
  # R6: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r6

  ddivu $25, $0
  # NOT-R6: :[[@LINE-1]]:3: warning: division by zero

  ddivu $0,$0
  # NOT-R6: :[[@LINE-1]]:3: warning: dividing zero by zero
OpenPOWER on IntegriCloud