[llvm] [hexagon] Require "asserts" build for widen-not-load test (PR #117414)

Brian Cain via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 23 07:29:56 PST 2024


https://github.com/androm3da updated https://github.com/llvm/llvm-project/pull/117414

>From 0a2b0f7337d4df22263b7ee490be90e9b19871d9 Mon Sep 17 00:00:00 2001
From: Brian Cain <brian.cain at oss.qualcomm.com>
Date: Fri, 22 Nov 2024 21:12:05 -0800
Subject: [PATCH] [hexagon] Require "asserts" build for widen-not-load test

This test fails on the `clang-x64-windows-msvc` builder:

      .---command stderr------------
      | C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\CodeGen\Hexagon\widen-not-load.ll:7:16: error: CHECK-LABEL: expected string not found in input
      | ; CHECK-LABEL: test1
      |                ^
      | <stdin>:1:1: note: scanning from here
      | llc.exe: Unknown command line argument '-debug-only=hexagon-load-store-widening'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llc.exe --help'
      | ^
      | <stdin>:1:35: note: possible intended match here
      | llc.exe: Unknown command line argument '-debug-only=hexagon-load-store-widening'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llc.exe --help'
      |                                   ^
---
 llvm/test/CodeGen/Hexagon/widen-not-load.ll | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/llvm/test/CodeGen/Hexagon/widen-not-load.ll b/llvm/test/CodeGen/Hexagon/widen-not-load.ll
index 6206a0a5367e49..9e59fa44cb61ab 100644
--- a/llvm/test/CodeGen/Hexagon/widen-not-load.ll
+++ b/llvm/test/CodeGen/Hexagon/widen-not-load.ll
@@ -1,6 +1,8 @@
 ; Test that double word post increment load is not generated.
 
-; RUN: llc -march=hexagon -O2 -debug-only=hexagon-load-store-widening %s -o 2>&1 - | FileCheck %s
+; REQUIRES: asserts
+; RUN: llc -march=hexagon -O2 -debug-only=hexagon-load-store-widening \
+; RUN:      %s -o 2>&1 - | FileCheck %s
 
 ; Loads with positive invalid postinc is not widened
 define ptr @test1() {



More information about the llvm-commits mailing list