From 4202afac0fe0a9f98f9b7c63b89d9aa7645090e3 Mon Sep 17 00:00:00 2001 From: Alex Maclean Date: Tue, 11 Mar 2025 17:23:29 +0000 Subject: [PATCH] [NVPTX][test] Use 'not' to switch an XFAIL test to PASS --- llvm/test/CodeGen/NVPTX/gvar-init.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/test/CodeGen/NVPTX/gvar-init.ll b/llvm/test/CodeGen/NVPTX/gvar-init.ll index 6fd650f7f326c..2c7963fd0a4b5 100644 --- a/llvm/test/CodeGen/NVPTX/gvar-init.ll +++ b/llvm/test/CodeGen/NVPTX/gvar-init.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -mtriple=nvptx -mcpu=sm_20 | FileCheck %s +; RUN: not --crash llc < %s -mtriple=nvptx -mcpu=sm_20 2>&1 | FileCheck %s ; Error out if initializer is given for address spaces that do not support initializers -; XFAIL: * +; CHECK: LLVM ERROR: initial value of 'g0' is not allowed in addrspace(3) @g0 = addrspace(3) global i32 42