Skip to content

Commit e085664

Browse files
committed
Fix formatting and update test
Created using spr 1.3.6-beta.1
1 parent e25909a commit e085664

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

llvm/lib/Transforms/IPO/LowerTypeTests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,8 @@ Triple::ArchType LowerTypeTestsModule::selectJumpTableArmEncoding(
14901490
}
14911491

14921492
void LowerTypeTestsModule::createJumpTable(
1493-
Function *F, ArrayRef<GlobalTypeMember *> Functions, Triple::ArchType JumpTableArch) {
1493+
Function *F, ArrayRef<GlobalTypeMember *> Functions,
1494+
Triple::ArchType JumpTableArch) {
14941495
std::string AsmStr, ConstraintStr;
14951496
raw_string_ostream AsmOS(AsmStr), ConstraintOS(ConstraintStr);
14961497
SmallVector<Value *, 16> AsmArgs;

llvm/test/Transforms/LowerTypeTests/function-arm-thumb.ll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,16 @@ define void @addrtaken() {
3535

3636
; CHECK: define private void {{.*}} #[[AT:.*]] align 4 {
3737
; CHECK-NEXT: entry:
38-
; CHECK-NEXT: call void asm sideeffect "b.w $0\0Ab.w $1\0A", "s,s"(ptr @f1.cfi, ptr @g1.cfi)
38+
; CHECK-NEXT: call void asm sideeffect "b.w $0\0A", "s"(ptr @f1.cfi)
39+
; CHECK-NEXT: call void asm sideeffect "b.w $0\0A", "s"(ptr @g1.cfi)
3940
; CHECK-NEXT: unreachable
4041
; CHECK-NEXT: }
4142

4243
; CHECK: define private void {{.*}} #[[AA:.*]] align 4 {
4344
; CHECK-NEXT: entry:
44-
; CHECK-NEXT: call void asm sideeffect "b $0\0Ab $1\0Ab $2\0A", "s,s,s"(ptr @f2.cfi, ptr @g2.cfi, ptr @h2.cfi)
45+
; CHECK-NEXT: call void asm sideeffect "b $0\0A", "s"(ptr @f2.cfi)
46+
; CHECK-NEXT: call void asm sideeffect "b $0\0A", "s"(ptr @g2.cfi)
47+
; CHECK-NEXT: call void asm sideeffect "b $0\0A", "s"(ptr @h2.cfi)
4548
; CHECK-NEXT: unreachable
4649
; CHECK-NEXT: }
4750

llvm/test/Transforms/LowerTypeTests/function-thumb-bti.ll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ define i1 @foo(ptr %p) {
4040

4141
; And check the actual jump table asm string:
4242

43-
; BTI: call void asm sideeffect "bti\0Ab.w $0\0Abti\0Ab.w $1\0A", "s,s"(ptr @f.cfi, ptr @g.cfi)
44-
; NOBTI: call void asm sideeffect "b.w $0\0Ab.w $1\0A", "s,s"(ptr @f.cfi, ptr @g.cfi)
43+
; BTI: call void asm sideeffect "bti\0Ab.w $0\0A", "s"(ptr @f.cfi)
44+
; BTI-NEXT: call void asm sideeffect "bti\0Ab.w $0\0A", "s"(ptr @g.cfi)
45+
; NOBTI: call void asm sideeffect "b.w $0\0A", "s"(ptr @f.cfi)
46+
; NOBTI-NEXT: call void asm sideeffect "b.w $0\0A", "s"(ptr @g.cfi)
4547

4648
; BTI: attributes [[ATTRS]] = { naked noinline "target-features"="+thumb-mode,+pacbti" }
4749
; NOBTI: attributes [[ATTRS]] = { naked noinline "target-cpu"="cortex-a8" "target-features"="+thumb-mode" }

0 commit comments

Comments
 (0)