zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / test / CodeGen / ARM / ifcvt8.ll
blob1e39060e69f2e3d6220a820f67989ded6f502c40
1 ; RUN: llc < %s -march=arm -mtriple=arm-apple-darwin | \
2 ; RUN:   grep ldmiane | count 1
4         %struct.SString = type { i8*, i32, i32 }
6 declare void @abort()
8 define fastcc void @t(%struct.SString* %word, i8 signext  %c) {
9 entry:
10         %tmp1 = icmp eq %struct.SString* %word, null            ; <i1> [#uses=1]
11         br i1 %tmp1, label %cond_true, label %cond_false
13 cond_true:              ; preds = %entry
14         tail call void @abort( )
15         unreachable
17 cond_false:             ; preds = %entry
18         ret void