mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Modernize testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7297 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5874f1499
commit
d2a0896832
@ -5,17 +5,17 @@
|
||||
|
||||
; RUN: as < %s | opt -instcombine | dis | grep -v seteq | grep -v setne | not grep set
|
||||
|
||||
bool "test1"(uint %A) {
|
||||
bool %test1(uint %A) {
|
||||
%B = setge uint %A, 1 ; setne %A, 0
|
||||
ret bool %B
|
||||
}
|
||||
|
||||
bool "test2"(uint %A) {
|
||||
bool %test2(uint %A) {
|
||||
%B = setgt uint %A, 0 ; setne %A, 0
|
||||
ret bool %B
|
||||
}
|
||||
|
||||
bool "test3"(sbyte %A) {
|
||||
bool %test3(sbyte %A) {
|
||||
%B = setge sbyte %A, -127 ; setne %A, -128
|
||||
ret bool %B
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user