diff options
Diffstat (limited to 'test/CodeGen/CPP')
-rw-r--r-- | test/CodeGen/CPP/2007-06-16-Funcname.ll | 7 | ||||
-rw-r--r-- | test/CodeGen/CPP/2009-05-01-Long-Double.ll | 13 | ||||
-rw-r--r-- | test/CodeGen/CPP/2009-05-04-CondBr.ll | 28 | ||||
-rw-r--r-- | test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll | 6 | ||||
-rw-r--r-- | test/CodeGen/CPP/atomic.ll | 89 | ||||
-rw-r--r-- | test/CodeGen/CPP/attributes.ll | 7 | ||||
-rw-r--r-- | test/CodeGen/CPP/gep.ll | 10 | ||||
-rw-r--r-- | test/CodeGen/CPP/lit.local.cfg | 3 |
8 files changed, 0 insertions, 163 deletions
diff --git a/test/CodeGen/CPP/2007-06-16-Funcname.ll b/test/CodeGen/CPP/2007-06-16-Funcname.ll deleted file mode 100644 index 71fea12d9c2c9..0000000000000 --- a/test/CodeGen/CPP/2007-06-16-Funcname.ll +++ /dev/null @@ -1,7 +0,0 @@ -; RUN: llc < %s -march=cpp -cppfname=WAKKA | not grep makeLLVMModule -; PR1515 - -define void @foo() { - ret void -} - diff --git a/test/CodeGen/CPP/2009-05-01-Long-Double.ll b/test/CodeGen/CPP/2009-05-01-Long-Double.ll deleted file mode 100644 index 470303d6bb054..0000000000000 --- a/test/CodeGen/CPP/2009-05-01-Long-Double.ll +++ /dev/null @@ -1,13 +0,0 @@ -; RUN: llc < %s -march=cpp -cppgen=program -o %t - -define x86_fp80 @some_func() nounwind { -entry: - %retval = alloca x86_fp80 ; <x86_fp80*> [#uses=2] - %call = call i32 (...) @other_func() ; <i32> [#uses=1] - %conv = sitofp i32 %call to x86_fp80 ; <x86_fp80> [#uses=1] - store x86_fp80 %conv, x86_fp80* %retval - %0 = load x86_fp80, x86_fp80* %retval ; <x86_fp80> [#uses=1] - ret x86_fp80 %0 -} - -declare i32 @other_func(...) diff --git a/test/CodeGen/CPP/2009-05-04-CondBr.ll b/test/CodeGen/CPP/2009-05-04-CondBr.ll deleted file mode 100644 index 9ce1e5f020426..0000000000000 --- a/test/CodeGen/CPP/2009-05-04-CondBr.ll +++ /dev/null @@ -1,28 +0,0 @@ -; RUN: llc < %s -march=cpp -cppgen=program -o %t -; RUN: grep "BranchInst::Create(label_if_then, label_if_end, int1_cmp, label_entry);" %t - -define i32 @some_func(i32 %a) nounwind { -entry: - %retval = alloca i32 ; <i32*> [#uses=2] - %a.addr = alloca i32 ; <i32*> [#uses=8] - store i32 %a, i32* %a.addr - %tmp = load i32, i32* %a.addr ; <i32> [#uses=1] - %inc = add i32 %tmp, 1 ; <i32> [#uses=1] - store i32 %inc, i32* %a.addr - %tmp1 = load i32, i32* %a.addr ; <i32> [#uses=1] - %cmp = icmp slt i32 %tmp1, 3 ; <i1> [#uses=1] - br i1 %cmp, label %if.then, label %if.end - -if.then: ; preds = %entry - store i32 7, i32* %a.addr - br label %if.end - -if.end: ; preds = %if.then, %entry - %tmp2 = load i32, i32* %a.addr ; <i32> [#uses=1] - %inc3 = add i32 %tmp2, 1 ; <i32> [#uses=1] - store i32 %inc3, i32* %a.addr - %tmp4 = load i32, i32* %a.addr ; <i32> [#uses=1] - store i32 %tmp4, i32* %retval - %0 = load i32, i32* %retval ; <i32> [#uses=1] - ret i32 %0 -} diff --git a/test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll b/test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll deleted file mode 100644 index 419f594767841..0000000000000 --- a/test/CodeGen/CPP/2012-02-05-UnitVarCrash.ll +++ /dev/null @@ -1,6 +0,0 @@ -; RUN: llc < %s -march=cpp -declare void @foo(<4 x i32>) -define void @bar() { - call void @foo(<4 x i32> <i32 0, i32 1, i32 2, i32 3>) - ret void -} diff --git a/test/CodeGen/CPP/atomic.ll b/test/CodeGen/CPP/atomic.ll deleted file mode 100644 index e79c45d166a56..0000000000000 --- a/test/CodeGen/CPP/atomic.ll +++ /dev/null @@ -1,89 +0,0 @@ -; RUN: llc -march=cpp -o - %s | FileCheck %s - -define void @test_atomicrmw(i32* %addr, i32 %inc) { - %inst0 = atomicrmw xchg i32* %addr, i32 %inc seq_cst - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Xchg, {{.*}}, SequentiallyConsistent, CrossThread - ; CHECK: [[INST]]->setName("inst0"); - ; CHECK: [[INST]]->setVolatile(false); - - %inst1 = atomicrmw add i32* %addr, i32 %inc seq_cst - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Add, {{.*}}, SequentiallyConsistent, CrossThread - ; CHECK: [[INST]]->setName("inst1"); - ; CHECK: [[INST]]->setVolatile(false); - - %inst2 = atomicrmw volatile sub i32* %addr, i32 %inc singlethread monotonic - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Sub, {{.*}}, Monotonic, SingleThread - ; CHECK: [[INST]]->setName("inst2"); - ; CHECK: [[INST]]->setVolatile(true); - - %inst3 = atomicrmw and i32* %addr, i32 %inc acq_rel - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::And, {{.*}}, AcquireRelease, CrossThread - ; CHECK: [[INST]]->setName("inst3"); - ; CHECK: [[INST]]->setVolatile(false); - - %inst4 = atomicrmw nand i32* %addr, i32 %inc release - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Nand, {{.*}}, Release, CrossThread - ; CHECK: [[INST]]->setName("inst4"); - ; CHECK: [[INST]]->setVolatile(false); - - %inst5 = atomicrmw volatile or i32* %addr, i32 %inc singlethread seq_cst - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Or, {{.*}}, SequentiallyConsistent, SingleThread - ; CHECK: [[INST]]->setName("inst5"); - ; CHECK: [[INST]]->setVolatile(true); - - %inst6 = atomicrmw xor i32* %addr, i32 %inc release - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Xor, {{.*}}, Release, CrossThread - ; CHECK: [[INST]]->setName("inst6"); - ; CHECK: [[INST]]->setVolatile(false); - - %inst7 = atomicrmw volatile max i32* %addr, i32 %inc singlethread monotonic - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Max, {{.*}}, Monotonic, SingleThread - ; CHECK: [[INST]]->setName("inst7"); - ; CHECK: [[INST]]->setVolatile(true); - - %inst8 = atomicrmw min i32* %addr, i32 %inc acquire - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::Min, {{.*}}, Acquire, CrossThread - ; CHECK: [[INST]]->setName("inst8"); - ; CHECK: [[INST]]->setVolatile(false); - - %inst9 = atomicrmw volatile umax i32* %addr, i32 %inc monotonic - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::UMax, {{.*}}, Monotonic, CrossThread - ; CHECK: [[INST]]->setName("inst9"); - ; CHECK: [[INST]]->setVolatile(true); - - %inst10 = atomicrmw umin i32* %addr, i32 %inc singlethread release - ; CHECK: AtomicRMWInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicRMWInst(AtomicRMWInst::UMin, {{.*}}, Release, SingleThread - ; CHECK: [[INST]]->setName("inst10"); - ; CHECK: [[INST]]->setVolatile(false); - - - ret void -} - -define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) { - %inst0 = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst monotonic - ; CHECK: AtomicCmpXchgInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicCmpXchgInst({{.*}}, SequentiallyConsistent, Monotonic, CrossThread - ; CHECK: [[INST]]->setName("inst0"); - ; CHECK: [[INST]]->setVolatile(false); - ; CHECK: [[INST]]->setWeak(false); - - %inst1 = cmpxchg volatile i32* %addr, i32 %desired, i32 %new singlethread acq_rel acquire - ; CHECK: AtomicCmpXchgInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicCmpXchgInst({{.*}}, AcquireRelease, Acquire, SingleThread - ; CHECK: [[INST]]->setName("inst1"); - ; CHECK: [[INST]]->setVolatile(true); - ; CHECK: [[INST]]->setWeak(false); - - %inst2 = cmpxchg weak i32* %addr, i32 %desired, i32 %new seq_cst monotonic - ; CHECK: AtomicCmpXchgInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicCmpXchgInst({{.*}}, SequentiallyConsistent, Monotonic, CrossThread - ; CHECK: [[INST]]->setName("inst2"); - ; CHECK: [[INST]]->setVolatile(false); - ; CHECK: [[INST]]->setWeak(true); - - %inst3 = cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new singlethread acq_rel acquire - ; CHECK: AtomicCmpXchgInst* [[INST:[a-zA-Z0-9_]+]] = new AtomicCmpXchgInst({{.*}}, AcquireRelease, Acquire, SingleThread - ; CHECK: [[INST]]->setName("inst3"); - ; CHECK: [[INST]]->setVolatile(true); - ; CHECK: [[INST]]->setWeak(true); - - ret void -} diff --git a/test/CodeGen/CPP/attributes.ll b/test/CodeGen/CPP/attributes.ll deleted file mode 100644 index 3dab617d80b9e..0000000000000 --- a/test/CodeGen/CPP/attributes.ll +++ /dev/null @@ -1,7 +0,0 @@ -; RUN: llc < %s -march=cpp | FileCheck %s - -define void @f1(i8* byval, i8* inalloca) { -; CHECK: ByVal -; CHECK: InAlloca - ret void -} diff --git a/test/CodeGen/CPP/gep.ll b/test/CodeGen/CPP/gep.ll deleted file mode 100644 index 88a0bf1f216d9..0000000000000 --- a/test/CodeGen/CPP/gep.ll +++ /dev/null @@ -1,10 +0,0 @@ -; RUN: llc -march=cpp -o - %s | FileCheck %s - -define void @f1(i32* %addr) { - %x = getelementptr i32, i32* %addr, i32 1 -; CHECK: ConstantInt* [[INT_1:.*]] = ConstantInt::get(mod->getContext(), APInt(32, StringRef("1"), 10)); -; CHECK: GetElementPtrInst::Create(IntegerType::get(mod->getContext(), 32), ptr_addr, -; CHECK-NEXT: [[INT_1]] -; CHECK-NEXT: }, "x", label_3); - ret void -} diff --git a/test/CodeGen/CPP/lit.local.cfg b/test/CodeGen/CPP/lit.local.cfg deleted file mode 100644 index 3ff5c6b697370..0000000000000 --- a/test/CodeGen/CPP/lit.local.cfg +++ /dev/null @@ -1,3 +0,0 @@ -if not 'CppBackend' in config.root.targets: - config.unsupported = True - |