diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-04 17:18:51 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-04 17:18:51 +0000 |
commit | 25528d6de70e98683722e28655d8568d5f09b5c7 (patch) | |
tree | 061a9b3bfa623e3f38efd5fc02c6ec234acfcfde /llvm/test/CodeGen/X86/adx-intrinsics.ll | |
parent | 2b4385846c86078e0012e7bfb2e8dc6476ae8dd0 (diff) | |
download | bcm5719-llvm-25528d6de70e98683722e28655d8568d5f09b5c7.tar.gz bcm5719-llvm-25528d6de70e98683722e28655d8568d5f09b5c7.zip |
[CodeGen] Unify MBB reference format in both MIR and debug output
As part of the unification of the debug format and the MIR format, print
MBB references as '%bb.5'.
The MIR printer prints the IR name of a MBB only for block definitions.
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#" << ([a-zA-Z0-9_]+)->getNumber\(\)/" << printMBBReference(*\1)/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#" << ([a-zA-Z0-9_]+)\.getNumber\(\)/" << printMBBReference(\1)/g'
* find . \( -name "*.txt" -o -name "*.s" -o -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#([0-9]+)/%bb.\1/g'
* grep -nr 'BB#' and fix
Differential Revision: https://reviews.llvm.org/D40422
llvm-svn: 319665
Diffstat (limited to 'llvm/test/CodeGen/X86/adx-intrinsics.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/adx-intrinsics.ll | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/llvm/test/CodeGen/X86/adx-intrinsics.ll b/llvm/test/CodeGen/X86/adx-intrinsics.ll index 7af15a73a4f..bc8e2be4de0 100644 --- a/llvm/test/CodeGen/X86/adx-intrinsics.ll +++ b/llvm/test/CodeGen/X86/adx-intrinsics.ll @@ -6,7 +6,7 @@ declare i8 @llvm.x86.addcarryx.u32(i8, i32, i32, i8*) define i8 @test_addcarryx_u32(i8 %c, i32 %a, i32 %b, i8* %ptr) { ; NOADX-LABEL: test_addcarryx_u32: -; NOADX: ## BB#0: +; NOADX: ## %bb.0: ; NOADX-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; NOADX-NEXT: adcl %edx, %esi ## encoding: [0x11,0xd6] ; NOADX-NEXT: movl %esi, (%rcx) ## encoding: [0x89,0x31] @@ -14,7 +14,7 @@ define i8 @test_addcarryx_u32(i8 %c, i32 %a, i32 %b, i8* %ptr) { ; NOADX-NEXT: retq ## encoding: [0xc3] ; ; ADX-LABEL: test_addcarryx_u32: -; ADX: ## BB#0: +; ADX: ## %bb.0: ; ADX-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; ADX-NEXT: adcxl %edx, %esi ## encoding: [0x66,0x0f,0x38,0xf6,0xf2] ; ADX-NEXT: movl %esi, (%rcx) ## encoding: [0x89,0x31] @@ -28,7 +28,7 @@ declare i8 @llvm.x86.addcarryx.u64(i8, i64, i64, i8*) define i8 @test_addcarryx_u64(i8 %c, i64 %a, i64 %b, i8* %ptr) { ; NOADX-LABEL: test_addcarryx_u64: -; NOADX: ## BB#0: +; NOADX: ## %bb.0: ; NOADX-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; NOADX-NEXT: adcq %rdx, %rsi ## encoding: [0x48,0x11,0xd6] ; NOADX-NEXT: movq %rsi, (%rcx) ## encoding: [0x48,0x89,0x31] @@ -36,7 +36,7 @@ define i8 @test_addcarryx_u64(i8 %c, i64 %a, i64 %b, i8* %ptr) { ; NOADX-NEXT: retq ## encoding: [0xc3] ; ; ADX-LABEL: test_addcarryx_u64: -; ADX: ## BB#0: +; ADX: ## %bb.0: ; ADX-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; ADX-NEXT: adcxq %rdx, %rsi ## encoding: [0x66,0x48,0x0f,0x38,0xf6,0xf2] ; ADX-NEXT: movq %rsi, (%rcx) ## encoding: [0x48,0x89,0x31] @@ -50,7 +50,7 @@ declare i8 @llvm.x86.addcarry.u32(i8, i32, i32, i8*) define i8 @test_addcarry_u32(i8 %c, i32 %a, i32 %b, i8* %ptr) { ; NOADX-LABEL: test_addcarry_u32: -; NOADX: ## BB#0: +; NOADX: ## %bb.0: ; NOADX-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; NOADX-NEXT: adcl %edx, %esi ## encoding: [0x11,0xd6] ; NOADX-NEXT: movl %esi, (%rcx) ## encoding: [0x89,0x31] @@ -58,7 +58,7 @@ define i8 @test_addcarry_u32(i8 %c, i32 %a, i32 %b, i8* %ptr) { ; NOADX-NEXT: retq ## encoding: [0xc3] ; ; ADX-LABEL: test_addcarry_u32: -; ADX: ## BB#0: +; ADX: ## %bb.0: ; ADX-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; ADX-NEXT: adcxl %edx, %esi ## encoding: [0x66,0x0f,0x38,0xf6,0xf2] ; ADX-NEXT: movl %esi, (%rcx) ## encoding: [0x89,0x31] @@ -72,7 +72,7 @@ declare i8 @llvm.x86.addcarry.u64(i8, i64, i64, i8*) define i8 @test_addcarry_u64(i8 %c, i64 %a, i64 %b, i8* %ptr) { ; NOADX-LABEL: test_addcarry_u64: -; NOADX: ## BB#0: +; NOADX: ## %bb.0: ; NOADX-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; NOADX-NEXT: adcq %rdx, %rsi ## encoding: [0x48,0x11,0xd6] ; NOADX-NEXT: movq %rsi, (%rcx) ## encoding: [0x48,0x89,0x31] @@ -80,7 +80,7 @@ define i8 @test_addcarry_u64(i8 %c, i64 %a, i64 %b, i8* %ptr) { ; NOADX-NEXT: retq ## encoding: [0xc3] ; ; ADX-LABEL: test_addcarry_u64: -; ADX: ## BB#0: +; ADX: ## %bb.0: ; ADX-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; ADX-NEXT: adcxq %rdx, %rsi ## encoding: [0x66,0x48,0x0f,0x38,0xf6,0xf2] ; ADX-NEXT: movq %rsi, (%rcx) ## encoding: [0x48,0x89,0x31] @@ -94,7 +94,7 @@ declare i8 @llvm.x86.subborrow.u32(i8, i32, i32, i8*) define i8 @test_subborrow_u32(i8 %c, i32 %a, i32 %b, i8* %ptr) { ; CHECK-LABEL: test_subborrow_u32: -; CHECK: ## BB#0: +; CHECK: ## %bb.0: ; CHECK-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; CHECK-NEXT: sbbl %edx, %esi ## encoding: [0x19,0xd6] ; CHECK-NEXT: movl %esi, (%rcx) ## encoding: [0x89,0x31] @@ -108,7 +108,7 @@ declare i8 @llvm.x86.subborrow.u64(i8, i64, i64, i8*) define i8 @test_subborrow_u64(i8 %c, i64 %a, i64 %b, i8* %ptr) { ; CHECK-LABEL: test_subborrow_u64: -; CHECK: ## BB#0: +; CHECK: ## %bb.0: ; CHECK-NEXT: addb $-1, %dil ## encoding: [0x40,0x80,0xc7,0xff] ; CHECK-NEXT: sbbq %rdx, %rsi ## encoding: [0x48,0x19,0xd6] ; CHECK-NEXT: movq %rsi, (%rcx) ## encoding: [0x48,0x89,0x31] @@ -121,7 +121,7 @@ define i8 @test_subborrow_u64(i8 %c, i64 %a, i64 %b, i8* %ptr) { ; Try a version with loads. Previously we crashed on this. define i32 @load_crash(i64* nocapture readonly %a, i64* nocapture readonly %b, i64* %res) { ; NOADX-LABEL: load_crash: -; NOADX: ## BB#0: +; NOADX: ## %bb.0: ; NOADX-NEXT: movq (%rdi), %rax ## encoding: [0x48,0x8b,0x07] ; NOADX-NEXT: xorl %ecx, %ecx ## encoding: [0x31,0xc9] ; NOADX-NEXT: addb $-1, %cl ## encoding: [0x80,0xc1,0xff] @@ -132,7 +132,7 @@ define i32 @load_crash(i64* nocapture readonly %a, i64* nocapture readonly %b, i ; NOADX-NEXT: retq ## encoding: [0xc3] ; ; ADX-LABEL: load_crash: -; ADX: ## BB#0: +; ADX: ## %bb.0: ; ADX-NEXT: movq (%rdi), %rax ## encoding: [0x48,0x8b,0x07] ; ADX-NEXT: xorl %ecx, %ecx ## encoding: [0x31,0xc9] ; ADX-NEXT: addb $-1, %cl ## encoding: [0x80,0xc1,0xff] @@ -152,7 +152,7 @@ define i32 @load_crash(i64* nocapture readonly %a, i64* nocapture readonly %b, i ; Try a really simple all zero input case, which also used to crash define void @allzeros() { ; CHECK-LABEL: allzeros: -; CHECK: ## BB#0: ## %entry +; CHECK: ## %bb.0: ## %entry ; CHECK-NEXT: xorl %eax, %eax ## encoding: [0x31,0xc0] ; CHECK-NEXT: addb $-1, %al ## encoding: [0x04,0xff] ; CHECK-NEXT: sbbq %rax, %rax ## encoding: [0x48,0x19,0xc0] |