You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
This commit is contained in:
parent
37fbf886a3
commit
e19d552987
34
external/llvm/test/Transforms/InstSimplify/2010-12-20-Boolean.ll
vendored
Normal file
34
external/llvm/test/Transforms/InstSimplify/2010-12-20-Boolean.ll
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
; NOTE: Assertions have been autogenerated by update_test_checks.py
|
||||
; RUN: opt < %s -instsimplify -S | FileCheck %s
|
||||
|
||||
define i1 @add(i1 %x) {
|
||||
; CHECK-LABEL: @add(
|
||||
; CHECK: ret i1 false
|
||||
;
|
||||
%z = add i1 %x, %x
|
||||
ret i1 %z
|
||||
}
|
||||
|
||||
define i1 @sub(i1 %x) {
|
||||
; CHECK-LABEL: @sub(
|
||||
; CHECK: ret i1 %x
|
||||
;
|
||||
%z = sub i1 false, %x
|
||||
ret i1 %z
|
||||
}
|
||||
|
||||
define i1 @mul(i1 %x) {
|
||||
; CHECK-LABEL: @mul(
|
||||
; CHECK: ret i1 %x
|
||||
;
|
||||
%z = mul i1 %x, %x
|
||||
ret i1 %z
|
||||
}
|
||||
|
||||
define i1 @ne(i1 %x) {
|
||||
; CHECK-LABEL: @ne(
|
||||
; CHECK: ret i1 %x
|
||||
;
|
||||
%z = icmp ne i1 %x, 0
|
||||
ret i1 %z
|
||||
}
|
Reference in New Issue
Block a user