aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-reduce/remove-module-data.ll
blob: 50105a05c0ecb8432c1acccb41eb4bebc7eccf36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
; REQUIRES: x86-registered-target

; RUN: opt %s -S | FileCheck --check-prefix=CHECK-FILE %s
; RUN: llvm-reduce -abort-on-invalid-reduction --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
; RUN: FileCheck --check-prefix=CHECK-FINAL %s < %t

; CHECK-INTERESTINGNESS: declare

; CHECK-FILE: ModuleID
; CHECK-FILE: source_filename
; CHECK-FILE: datalayout
; CHECK-FILE: triple
; CHECK-FILE: module asm
; CHECK-FILE: declare void @g

; CHECK-FINAL-NOT: ModuleID
; CHECK-FINAL-NOT: source_filename
; CHECK-FINAL: datalayout
; CHECK-FINAL: triple
; CHECK-FINAL-NOT: module asm
; CHECK-FINAL: declare void @g

source_filename = "/tmp/a.cc"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
module asm "foo"

declare void @g()