brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · a07f1e6 Raw
52 lines · plain
1; RUN: llc -O3 -relocation-model=pic -mcpu=cortex-a8 -mattr=+thumb2 < %s2;3; This test creates a predicated t2ADDri instruction that is then turned into a t2MOVgpr2gpr instr.4; Test that that the predicate operands are removed properly.5;6target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32"7target triple = "thumbv7-apple-darwin10"8 9declare void @etoe53(ptr nocapture, ptr nocapture) nounwind10 11define void @earith(ptr nocapture %value, i32 %icode, ptr nocapture %r1, ptr nocapture %r2) nounwind {12entry:13  %v = alloca [6 x i16], align 4                  ; <ptr> [#uses=1]14  br i1 undef, label %bb2.i, label %bb515 16bb2.i:                                            ; preds = %entry17  call  void @etoe53(ptr null, ptr %value) nounwind18  ret void19 20bb5:                                              ; preds = %entry21  switch i32 %icode, label %bb10 [22    i32 57, label %bb1423    i32 58, label %bb1824    i32 67, label %bb2225    i32 76, label %bb2626    i32 77, label %bb3527  ]28 29bb10:                                             ; preds = %bb530  br label %bb4631 32bb14:                                             ; preds = %bb533  unreachable34 35bb18:                                             ; preds = %bb536  unreachable37 38bb22:                                             ; preds = %bb539  unreachable40 41bb26:                                             ; preds = %bb542  br label %bb4643 44bb35:                                             ; preds = %bb545  unreachable46 47bb46:                                             ; preds = %bb26, %bb1048  %v47 = getelementptr inbounds [6 x i16], ptr %v, i32 0, i32 0 ; <ptr> [#uses=1]49  call  void @etoe53(ptr %v47, ptr %value) nounwind50  ret void51}52