mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 23:55:03 +00:00
9 lines
201 B
LLVM
9 lines
201 B
LLVM
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep ubyte
|
||
|
|
||
|
int %test1(uint %X) {
|
||
|
%Y = cast uint %X to ubyte ;; Turn into an AND
|
||
|
%Z = cast ubyte %Y to int
|
||
|
ret int %Z
|
||
|
}
|
||
|
|