Skip to content

[PowerPC][NFC] Pre-commit test case for checking whether mtvsrbmi power10 instruction not used #143956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 13, 2025

Conversation

diggerlin
Copy link
Contributor

Verify whether the generated assembly for the following function includes the mtvsrbmi instruction.
vector unsigned char v00FF()
{
vector unsigned char x = { 0xFF, 0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 };
return x;
}

@llvmbot
Copy link
Member

llvmbot commented Jun 12, 2025

@llvm/pr-subscribers-backend-powerpc

Author: zhijian lin (diggerlin)

Changes

Verify whether the generated assembly for the following function includes the mtvsrbmi instruction.
vector unsigned char v00FF()
{
vector unsigned char x = { 0xFF, 0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 };
return x;
}


Full diff: https://github.com/llvm/llvm-project/pull/143956.diff

1 Files Affected:

  • (added) llvm/test/CodeGen/PowerPC/mtvsrbmi.ll (+38)
diff --git a/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll b/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll
new file mode 100644
index 0000000000000..7b793c98a57a8
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll
@@ -0,0 +1,38 @@
+; Verify whether the generated assembly for the following function includes the mtvsrbmi instruction.
+; vector unsigned char v00FF()
+; {
+; vector unsigned char x = { 0xFF, 0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 };
+; return x;
+; }
+
+; RUN: llc < %s -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs \
+; RUN:   | FileCheck %s --check-prefix=CHECK
+
+define dso_local noundef range(i8 -1, 1) <16 x i8> @_Z5v00FFv() local_unnamed_addr {
+entry:
+  ret <16 x i8> <i8 -1, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>
+}
+
+; CHECK:      L..CPI0_0:
+; CHECK-NEXT:   .byte   255                             # 0xff
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+; CHECK-NEXT:   .byte   0                               # 0x0
+
+; CHECK:      ._Z5v00FFv:
+; CHECK-NEXT: # %bb.0:
+; CHECK-NEXT:   lwz r3, L..C0(r2) 
+; CHECK-NEXT:   lxv vs34, 0(r3)
+; CHECK-NEXT:   blr 

@diggerlin diggerlin changed the title [PowerPC][NFC] add a test case to check whether mtvsrbmi power10 instruction not used [PowerPC][NFC] Pre-commit test case for checking whether mtvsrbmi power10 instruction not used Jun 12, 2025
; RUN: llc < %s -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs \
; RUN: | FileCheck %s --check-prefix=CHECK

define dso_local noundef range(i8 -1, 1) <16 x i8> @_Z5v00FFv() local_unnamed_addr {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is dso_local and local_unnamed_addr needed?

In general we prefer to use the update_llc_* utils to generate the checks. If this can't be used, can you please add doc about why?

@diggerlin diggerlin merged commit 9c2e0bd into llvm:main Jun 13, 2025
5 of 7 checks passed
@diggerlin
Copy link
Contributor Author

diggerlin commented Jun 13, 2025

The merged test case has error, I have a fix on the patch [PowerPC] fixed mtvsrbmi.ll test case error caused by run the update_llc_test_checks.py

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 13, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/21384

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'lit :: shtest-external-shell-kill.py' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 23
env -u FILECHECK_OPTS "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9" /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/utils/lit/lit.py -j1 --order=lexical -a Inputs/shtest-external-shell-kill | grep -v 'bash.exe: warning: could not find /tmp, please create!' | FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/build/utils/lit/tests/shtest-external-shell-kill.py
# executed command: env -u FILECHECK_OPTS /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9 /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/utils/lit/lit.py -j1 --order=lexical -a Inputs/shtest-external-shell-kill
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: grep -v 'bash.exe: warning: could not find /tmp, please create!'
# note: command had no output on stdout or stderr
# executed command: FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/build/utils/lit/tests/shtest-external-shell-kill.py
# .---command stderr------------
# | �[1m/Users/buildbot/buildbot-root/aarch64-darwin/build/utils/lit/tests/shtest-external-shell-kill.py:29:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: is not on the line after the previous match
�[0m# | �[1m�[0m# CHECK-NEXT: end
# | �[0;1;32m              ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:22:6: �[0m�[0;1;30mnote: �[0m�[1m'next' match was here
�[0m# | �[1m�[0mecho end # RUN: at line 5
# | �[0;1;32m     ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:8:6: �[0m�[0;1;30mnote: �[0m�[1mprevious match ended here
�[0m# | �[1m�[0mstart
# | �[0;1;32m     ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:9:1: �[0m�[0;1;30mnote: �[0m�[1mnon-matching line after previous match is here
�[0m# | �[1m�[0m
# | �[0;1;32m^
�[0m# | �[0;1;32m�[0m
# | Input file: <stdin>
# | Check file: /Users/buildbot/buildbot-root/aarch64-darwin/build/utils/lit/tests/shtest-external-shell-kill.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# | �[1m�[0m�[0;1;30m          1: �[0m�[1m�[0;1;46m-- Testing: 1 tests, 1 workers -- �[0m
# | �[0;1;30m          2: �[0m�[1m�[0;1;46mFAIL: shtest-external-shell-kill :: test.txt (1 of 1) �[0m
# | �[0;1;30m          3: �[0m�[1m�[0;1;46m******************** TEST 'shtest-external-shell-kill :: test.txt' FAILED ******************** �[0m
# | �[0;1;30m          4: �[0m�[1m�[0;1;46mExit Code: 1 �[0m
# | �[0;1;30m          5: �[0m�[1m�[0;1;46m �[0m
# | �[0;1;30m          6: �[0m�[1m�[0;1;46m�[0mCommand Output (stdout):�[0;1;46m �[0m
# | �[0;1;32mcheck:26     ^~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;30m          7: �[0m�[1m�[0;1;46m�[0m--�[0;1;46m �[0m
# | �[0;1;32mnext:27      ^~
�[0m# | �[0;1;32m�[0m�[0;1;30m          8: �[0m�[1m�[0;1;46m�[0mstart�[0;1;46m �[0m
# | �[0;1;32mnext:28      ^~~~~
�[0m# | �[0;1;32m�[0m�[0;1;30m          9: �[0m�[1m�[0;1;46m �[0m
# | �[0;1;30m         10: �[0m�[1m�[0;1;46m-- �[0m
# | �[0;1;30m         11: �[0m�[1m�[0;1;46mCommand Output (stderr): �[0m
# | �[0;1;30m         12: �[0m�[1m�[0;1;46m-- �[0m
# | �[0;1;30m         13: �[0m�[1m�[0;1;46mecho start # RUN: at line 1 �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 13, 2025

LLVM Buildbot has detected a new failure on builder ml-opt-devrel-x86-64 running on ml-opt-devrel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/175/builds/20241

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/PowerPC/mtvsrbmi.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/ml-opt-devrel-x86-64-b1/build/bin/llc < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs    | /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK # RUN: at line 9
+ /b/ml-opt-devrel-x86-64-b1/build/bin/llc -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs
+ /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll:22:10: error: CHECK: expected string not found in input
; CHECK: L..CPI0_0:
         ^
<stdin>:37:5: note: scanning from here
 blr
    ^
<stdin>:63:6: note: possible intended match here
 .tc L..CPI0_0[TC],L..CPI0_0
     ^

Input file: <stdin>
Check file: /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           32:  .csect ..text..[PR],5 
           33: ._Z5v00FFv: 
           34: # %bb.0: # %entry 
           35:  lwz r3, L..C0(r2) # %const.0 
           36:  lxv vs34, 0(r3) 
           37:  blr 
check:22'0         X error: no match found
           38: L.._Z5v00FFv0: 
check:22'0     ~~~~~~~~~~~~~~~
           39:  .vbyte 4, 0x00000000 # Traceback table begin 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           40:  .byte 0x00 # Version = 0 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
           41:  .byte 0x09 # Language = CPlusPlus 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           42:  .byte 0x20 # -IsGlobaLinkage, -IsOutOfLineEpilogOrPrologue 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
           58:  .vbyte 4, 0x00000000 # Vector Parameter type =  
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 13, 2025

LLVM Buildbot has detected a new failure on builder ml-opt-rel-x86-64 running on ml-opt-rel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/185/builds/20076

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/PowerPC/mtvsrbmi.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/ml-opt-rel-x86-64-b1/build/bin/llc < /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs    | /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK # RUN: at line 9
+ /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK
+ /b/ml-opt-rel-x86-64-b1/build/bin/llc -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll:22:10: error: CHECK: expected string not found in input
; CHECK: L..CPI0_0:
         ^
<stdin>:37:5: note: scanning from here
 blr
    ^
<stdin>:63:6: note: possible intended match here
 .tc L..CPI0_0[TC],L..CPI0_0
     ^

Input file: <stdin>
Check file: /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           32:  .csect ..text..[PR],5 
           33: ._Z5v00FFv: 
           34: # %bb.0: # %entry 
           35:  lwz r3, L..C0(r2) # %const.0 
           36:  lxv vs34, 0(r3) 
           37:  blr 
check:22'0         X error: no match found
           38: L.._Z5v00FFv0: 
check:22'0     ~~~~~~~~~~~~~~~
           39:  .vbyte 4, 0x00000000 # Traceback table begin 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           40:  .byte 0x00 # Version = 0 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
           41:  .byte 0x09 # Language = CPlusPlus 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           42:  .byte 0x20 # -IsGlobaLinkage, -IsOutOfLineEpilogOrPrologue 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
           58:  .vbyte 4, 0x00000000 # Vector Parameter type =  
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 13, 2025

LLVM Buildbot has detected a new failure on builder ml-opt-dev-x86-64 running on ml-opt-dev-x86-64-b2 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/20299

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/PowerPC/mtvsrbmi.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/ml-opt-dev-x86-64-b1/build/bin/llc < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs    | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK # RUN: at line 9
+ /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK
+ /b/ml-opt-dev-x86-64-b1/build/bin/llc -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll:22:10: error: CHECK: expected string not found in input
; CHECK: L..CPI0_0:
         ^
<stdin>:37:5: note: scanning from here
 blr
    ^
<stdin>:63:6: note: possible intended match here
 .tc L..CPI0_0[TC],L..CPI0_0
     ^

Input file: <stdin>
Check file: /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           32:  .csect ..text..[PR],5 
           33: ._Z5v00FFv: 
           34: # %bb.0: # %entry 
           35:  lwz r3, L..C0(r2) # %const.0 
           36:  lxv vs34, 0(r3) 
           37:  blr 
check:22'0         X error: no match found
           38: L.._Z5v00FFv0: 
check:22'0     ~~~~~~~~~~~~~~~
           39:  .vbyte 4, 0x00000000 # Traceback table begin 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           40:  .byte 0x00 # Version = 0 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
           41:  .byte 0x09 # Language = CPlusPlus 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           42:  .byte 0x20 # -IsGlobaLinkage, -IsOutOfLineEpilogOrPrologue 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
           58:  .vbyte 4, 0x00000000 # Vector Parameter type =  
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 13, 2025

LLVM Buildbot has detected a new failure on builder lld-x86_64-ubuntu-fast running on as-builder-4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/18226

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/PowerPC/mtvsrbmi.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc < /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs    | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK # RUN: at line 9
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll:22:10: error: CHECK: expected string not found in input
; CHECK: L..CPI0_0:
         ^
<stdin>:37:5: note: scanning from here
 blr
    ^
<stdin>:63:6: note: possible intended match here
 .tc L..CPI0_0[TC],L..CPI0_0
     ^

Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           32:  .csect ..text..[PR],5 
           33: ._Z5v00FFv: 
           34: # %bb.0: # %entry 
           35:  lwz r3, L..C0(r2) # %const.0 
           36:  lxv vs34, 0(r3) 
           37:  blr 
check:22'0         X error: no match found
           38: L.._Z5v00FFv0: 
check:22'0     ~~~~~~~~~~~~~~~
           39:  .vbyte 4, 0x00000000 # Traceback table begin 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           40:  .byte 0x00 # Version = 0 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
           41:  .byte 0x09 # Language = CPlusPlus 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           42:  .byte 0x20 # -IsGlobaLinkage, -IsOutOfLineEpilogOrPrologue 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
           58:  .vbyte 4, 0x00000000 # Vector Parameter type =  
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 13, 2025

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building llvm at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/34739

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/PowerPC/mtvsrbmi.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/build/buildbot/premerge-monolithic-linux/build/bin/llc < /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs    | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK # RUN: at line 9
+ /build/buildbot/premerge-monolithic-linux/build/bin/llc -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll:22:10: error: CHECK: expected string not found in input
; CHECK: L..CPI0_0:
         ^
<stdin>:37:5: note: scanning from here
 blr
    ^
<stdin>:63:6: note: possible intended match here
 .tc L..CPI0_0[TC],L..CPI0_0
     ^

Input file: <stdin>
Check file: /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           32:  .csect ..text..[PR],5 
           33: ._Z5v00FFv: 
           34: # %bb.0: # %entry 
           35:  lwz r3, L..C0(r2) # %const.0 
           36:  lxv vs34, 0(r3) 
           37:  blr 
check:22'0         X error: no match found
           38: L.._Z5v00FFv0: 
check:22'0     ~~~~~~~~~~~~~~~
           39:  .vbyte 4, 0x00000000 # Traceback table begin 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           40:  .byte 0x00 # Version = 0 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
           41:  .byte 0x09 # Language = CPlusPlus 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           42:  .byte 0x20 # -IsGlobaLinkage, -IsOutOfLineEpilogOrPrologue 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
           58:  .vbyte 4, 0x00000000 # Vector Parameter type =  
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 13, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-debian running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/16/builds/20755

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/PowerPC/mtvsrbmi.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc < /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs    | /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK # RUN: at line 9
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll:22:10: error: CHECK: expected string not found in input
; CHECK: L..CPI0_0:
         ^
<stdin>:37:5: note: scanning from here
 blr
    ^
<stdin>:63:6: note: possible intended match here
 .tc L..CPI0_0[TC],L..CPI0_0
     ^

Input file: <stdin>
Check file: /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           32:  .csect ..text..[PR],5 
           33: ._Z5v00FFv: 
           34: # %bb.0: # %entry 
           35:  lwz r3, L..C0(r2) # %const.0 
           36:  lxv vs34, 0(r3) 
           37:  blr 
check:22'0         X error: no match found
           38: L.._Z5v00FFv0: 
check:22'0     ~~~~~~~~~~~~~~~
           39:  .vbyte 4, 0x00000000 # Traceback table begin 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           40:  .byte 0x00 # Version = 0 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
           41:  .byte 0x09 # Language = CPlusPlus 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           42:  .byte 0x20 # -IsGlobaLinkage, -IsOutOfLineEpilogOrPrologue 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
           58:  .vbyte 4, 0x00000000 # Vector Parameter type =  
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 13, 2025

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building llvm at step 7 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/30186

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/PowerPC/mtvsrbmi.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/llvm-x86_64-debian-dylib/build/bin/llc < /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs    | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK # RUN: at line 9
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll:22:10: error: CHECK: expected string not found in input
; CHECK: L..CPI0_0:
         ^
<stdin>:37:5: note: scanning from here
 blr
    ^
<stdin>:63:6: note: possible intended match here
 .tc L..CPI0_0[TC],L..CPI0_0
     ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           32:  .csect ..text..[PR],5 
           33: ._Z5v00FFv: 
           34: # %bb.0: # %entry 
           35:  lwz r3, L..C0(r2) # %const.0 
           36:  lxv vs34, 0(r3) 
           37:  blr 
check:22'0         X error: no match found
           38: L.._Z5v00FFv0: 
check:22'0     ~~~~~~~~~~~~~~~
           39:  .vbyte 4, 0x00000000 # Traceback table begin 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           40:  .byte 0x00 # Version = 0 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
           41:  .byte 0x09 # Language = CPlusPlus 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           42:  .byte 0x20 # -IsGlobaLinkage, -IsOutOfLineEpilogOrPrologue 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
           58:  .vbyte 4, 0x00000000 # Vector Parameter type =  
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 13, 2025

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/28360

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/PowerPC/mtvsrbmi.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc < /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs    | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK # RUN: at line 9
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll --check-prefix=CHECK
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll:22:10: error: CHECK: expected string not found in input
; CHECK: L..CPI0_0:
         ^
<stdin>:37:5: note: scanning from here
 blr
    ^
<stdin>:63:6: note: possible intended match here
 .tc L..CPI0_0[TC],L..CPI0_0
     ^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           32:  .csect ..text..[PR],5 
           33: ._Z5v00FFv: 
           34: # %bb.0: # %entry 
           35:  lwz r3, L..C0(r2) # %const.0 
           36:  lxv vs34, 0(r3) 
           37:  blr 
check:22'0         X error: no match found
           38: L.._Z5v00FFv0: 
check:22'0     ~~~~~~~~~~~~~~~
           39:  .vbyte 4, 0x00000000 # Traceback table begin 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           40:  .byte 0x00 # Version = 0 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
           41:  .byte 0x09 # Language = CPlusPlus 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           42:  .byte 0x20 # -IsGlobaLinkage, -IsOutOfLineEpilogOrPrologue 
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
           58:  .vbyte 4, 0x00000000 # Vector Parameter type =  
check:22'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

tomtor pushed a commit to tomtor/llvm-project that referenced this pull request Jun 14, 2025
…ower10 instruction not used (llvm#143956)

Verify whether the generated assembly for the following function
includes the mtvsrbmi instruction.
 vector unsigned char v00FF()
{
 vector unsigned char x = { 0xFF, 0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 };
 return x;
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants