[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Mips / macro-div-bad.s
blob4d93a1a9a69d39fe99e33744e51cb6404eb696ea
1 # RUN: not llvm-mc %s -arch=mips -mcpu=mips32r6 2>&1 | \
2 # RUN: FileCheck %s --check-prefix=R6
3 # RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64r6 2>&1 | \
4 # RUN: FileCheck %s --check-prefix=R6
5 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 2>&1 | \
6 # RUN: FileCheck %s --check-prefix=NOT-R6
7 # RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 2>&1 | \
8 # RUN: FileCheck %s --check-prefix=NOT-R6
10 .text
11 div $25, 11
12 # R6: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
14 div $25, $0
15 # NOT-R6: :[[@LINE-1]]:3: warning: division by zero
17 div $0,$0
18 # NOT-R6: :[[@LINE-1]]:3: warning: dividing zero by zero