brintos

brintos / llvm-project-archived public Read only

0
0
Text · 971 B · a8a72ac Raw
33 lines · plain
1; RUN: llc < %s -mtriple=msp430 | FileCheck %s2target datalayout = "e-m:e-p:16:16-i32:16:32-a:16-n8:16"3target triple = "msp430"4 5define void @foo(i16 %arg) unnamed_addr {6entry-block:7  br i1 undef, label %bb2, label %bb38 9bb2:                                              ; preds = %entry-block10  unreachable11 12bb3:                                              ; preds = %entry-block13  %0 = call { i16, i1 } @llvm.umul.with.overflow.i16(i16 undef, i16 %arg)14; CHECK: call15  %1 = extractvalue { i16, i1 } %0, 116  %2 = call i1 @llvm.expect.i1(i1 %1, i1 false)17  br i1 %2, label %panic, label %bb518 19bb5:                                              ; preds = %bb320  unreachable21 22panic:                                            ; preds = %bb323  unreachable24}25 26; Function Attrs: nounwind readnone27declare i1 @llvm.expect.i1(i1, i1) #028 29; Function Attrs: nounwind readnone30declare { i16, i1 } @llvm.umul.with.overflow.i16(i16, i16) #031 32attributes #0 = { nounwind readnone }33