2015-09-03 20:31:22 +08:00
|
|
|
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r6 2>&1 | \
|
2016-05-16 16:57:59 +08:00
|
|
|
# RUN: FileCheck %s --check-prefix=MIPS32-OR-R6
|
|
|
|
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>&1 | \
|
|
|
|
# RUN: FileCheck %s --check-prefix=MIPS32-OR-R6
|
2015-09-03 20:31:22 +08:00
|
|
|
# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64r6 2>&1 | \
|
2016-05-16 16:57:59 +08:00
|
|
|
# RUN: FileCheck %s --check-prefix=MIPS32-OR-R6
|
2015-09-03 20:31:22 +08:00
|
|
|
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 2>&1 | \
|
2016-05-16 16:57:59 +08:00
|
|
|
# RUN: FileCheck %s --check-prefix=MIPS64-NOT-R6
|
2015-09-03 20:31:22 +08:00
|
|
|
|
|
|
|
.text
|
2016-05-16 16:57:59 +08:00
|
|
|
ddivu $25, $11
|
|
|
|
# MIPS32-OR-R6: :[[@LINE-1]]:{{[0-9]+}}: error: instruction requires a CPU feature not currently enabled
|
2015-09-03 20:31:22 +08:00
|
|
|
|
2016-05-16 16:57:59 +08:00
|
|
|
ddivu $25, $0
|
|
|
|
# MIPS64-NOT-R6: :[[@LINE-1]]:3: warning: division by zero
|
2015-09-03 20:31:22 +08:00
|
|
|
|
2016-05-16 16:57:59 +08:00
|
|
|
ddivu $0,$0
|
|
|
|
# MIPS64-NOT-R6: :[[@LINE-1]]:3: warning: dividing zero by zero
|