Imported Upstream version 5.18.0.161

Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-10-19 08:34:24 +00:00
parent 37fbf886a3
commit e19d552987
28702 changed files with 3868076 additions and 803 deletions

View 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
}