mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
12 lines
251 B
LLVM
12 lines
251 B
LLVM
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep div
|
||
|
|
||
|
define <2 x i8> @f(<2 x i8> %x) {
|
||
|
%A = udiv <2 x i8> %x, <i8 1, i8 1>
|
||
|
ret <2 x i8> %A
|
||
|
}
|
||
|
|
||
|
define <2 x i8> @g(<2 x i8> %x) {
|
||
|
%A = sdiv <2 x i8> %x, <i8 1, i8 1>
|
||
|
ret <2 x i8> %A
|
||
|
}
|