https://llvm.org/bugs/show_bug.cgi?id=30451
Bug ID: 30451 Summary: Atomicrmw min i16 produces wrong result on PowerPC Product: new-bugs Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: v.chur...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified The code below returns -1 on x86_64 and 0 on PowerPC define i16 @julia_hh_65132() #0 !dbg !5 { top: %0 = alloca i16, align 2 %1 = bitcast i16* %0 to i8* call void @llvm.lifetime.start(i64 2, i8* %1) store i16 -1, i16* %0, align 2 %2 = atomicrmw min i16* %0, i16 0 acq_rel %3 = load atomic i16, i16* %0 acquire, align 8 call void @llvm.lifetime.end(i64 2, i8* %1) ret i16 %3 } -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs