2015-09-03 12:31:22 +00:00
|
|
|
# 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
|
|
|
|
divu $25, $11
|
2016-05-16 08:57:59 +00:00
|
|
|
# R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
|
2015-09-03 12:31:22 +00:00
|
|
|
|
|
|
|
divu $25, $0
|
|
|
|
# NOT-R6: :[[@LINE-1]]:3: warning: division by zero
|
|
|
|
|
|
|
|
divu $0,$0
|
|
|
|
# NOT-R6: :[[@LINE-1]]:3: warning: dividing zero by zero
|