Skip to content

Commit

Permalink
[PreISelIntrinsicLowering][test] Demonstrate volatile flag for memset…
Browse files Browse the repository at this point in the history
….inline is preserved

Equivalent change ot the one requested in the review for llvm#98281.
  • Loading branch information
asb authored and aaryanshukla committed Jul 14, 2024
1 parent 598b849 commit 028896f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
define void @memset_32(ptr %a, i8 %value) nounwind {
; CHECK-LABEL: define void @memset_32(
; CHECK-SAME: ptr [[A:%.*]], i8 [[VALUE:%.*]]) #[[ATTR0:[0-9]+]] {
; CHECK-NEXT: tail call void @llvm.memset.inline.p0.i64(ptr [[A]], i8 [[VALUE]], i64 32, i1 false)
; CHECK-NEXT: call void @llvm.memset.inline.p0.i64(ptr [[A]], i8 [[VALUE]], i64 32, i1 false)
; CHECK-NEXT: tail call void @llvm.memset.inline.p0.i64(ptr [[A]], i8 [[VALUE]], i64 32, i1 true)
; CHECK-NEXT: ret void
;
tail call void @llvm.memset.inline.p0.i64(ptr %a, i8 %value, i64 32, i1 0)
call void @llvm.memset.inline.p0.i64(ptr %a, i8 %value, i64 32, i1 0)
tail call void @llvm.memset.inline.p0.i64(ptr %a, i8 %value, i64 32, i1 1)
ret void
}

Expand Down

0 comments on commit 028896f

Please sign in to comment.