Skip to content

Commit

Permalink
[BPF] Enable IAS in backend
Browse files Browse the repository at this point in the history
Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D123845
  • Loading branch information
brad0 committed Jun 6, 2022
1 parent 5c06f71 commit c2d27c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h
Expand Up @@ -41,8 +41,6 @@ class BPFMCAsmInfo : public MCAsmInfo {
// section will be parsable, but with odd offsets and
// line numbers, etc.
CodePointerSize = 8;

UseIntegratedAssembler = false;
}

void setDwarfUsesRelocationsAcrossSections(bool enable) {
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/CodeGen/BPF/inline_asm.ll
Expand Up @@ -35,10 +35,10 @@ entry:
%2 = tail call i32 asm sideeffect "$0 = $1 ll", "=r,i"(i64 333333333333) #2
; CHECK: r1 = 333333333333 ll
%3 = call i32 asm sideeffect "$0 = *(u16 *) $1", "=r,*m"(i32* elementtype(i32) nonnull %a) #2
; CHECK: r1 = *(u16 *) (r10 - 4)
; CHECK: r1 = *(u16 *)(r10 - 4)
%4 = call i32 asm sideeffect "$0 = *(u32 *) $1", "=r,*m"(i32* elementtype(i32) getelementptr inbounds ([2 x i32], [2 x i32]* @g, i64 0, i64 1)) #2
; CHECK: r1 = g ll
; CHECK: r0 = *(u32 *) (r1 + 4)
; CHECK: r0 = *(u32 *)(r1 + 4)
call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %0) #2
ret i32 %4
}
Expand Down

0 comments on commit c2d27c8

Please sign in to comment.