-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorupstreamThe issue is with an upstream dependency, e.g. LLVMThe issue is with an upstream dependency, e.g. LLVM
Description
From #3447
int128(1)<<0is broken.
Corresponding LLVM IR:
define i128 @julia_foo2599(i32) {
top:
%1 = shl i32 %0, 4
%2 = zext i32 %1 to i128
%3 = shl i128 1, %2
%4 = icmp ugt i32 %1, 127
%5 = select i1 %4, i128 0, i128 %3
ret i128 %5
}
define i32 @main() {
top:
%0 = call i128 @julia_foo2599(i32 0)
%1 = lshr i128 %0, 64
%2 = trunc i128 %1 to i32
ret i32 %2
}LLVM bug no: http://llvm.org/bugs/show_bug.cgi?id=16439
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorupstreamThe issue is with an upstream dependency, e.g. LLVMThe issue is with an upstream dependency, e.g. LLVM