18 lines · plain
1; Test that update_test_checks.py can run pre-processing commands.2; RUN: opt < %s -passes=instsimplify -S | FileCheck %s --check-prefix=CHECK-AS2003; RUN: sed -e 's/addrspace(200)/addrspace(0)/g' -e 's/-A200-P200-G200//g' %s \4; RUN: | opt -passes=instsimplify -S | FileCheck %s --check-prefix=CHECK-AS05; Check that multiple pre-processing commands are handled6; RUN: sed 's/addrspace(200)/addrspace(1)/g' %s | sed 's/-A1-P1-G1//g' \7; RUN: | opt -passes=instsimplify -S | FileCheck %s --check-prefix=CHECK-AS18; More than two commands should also be fine9; RUN: cat %s | cat | cat | cat | opt < %s -passes=instsimplify -S \10; RUN: | FileCheck %s --check-prefix=CHECK-AS200-NOOP-PRE-PROCESS11 12target datalayout = "e-m:e-p200:128:128:128:64-p:64:64-A200-P200-G200"13 14define ptr addrspace(200) @test_zerogep_in_different_as(ptr addrspace(200) %arg) addrspace(200) nounwind {15entry:16 ret ptr addrspace(200) %arg17}18