brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · c72d129 Raw
30 lines · plain
1; RUN: llc < %s | FileCheck %s2; Check that an overly large immediate created by SROA doesn't crash the3; legalizer.4 5target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"6target triple = "x86_64-apple-macosx10.8.0"7 8%struct._GtkSheetRow = type { ptr, i32, i32, i32, %struct._GtkSheetButton, i32, i32 }9%struct._GtkSheetButton = type { i32, ptr, i32, ptr, i32 }10 11@a = common global ptr null, align 812 13define void @fn1() nounwind uwtable ssp {14entry:15  %0 = load ptr, ptr @a, align 816  %srcval2 = load i576, ptr %0, align 817  %tobool = icmp ugt i576 %srcval2, 5758609657015291369997489289838056779353212311426453290368967132943152103259504474008372078212980297151898765610906745757706580551032703601930899431507409734572441518  br i1 %tobool, label %if.then, label %if.end19 20if.then:                                          ; preds = %entry21  store i576 %srcval2, ptr %0, align 822  br label %if.end23 24if.end:                                           ; preds = %if.then, %entry25  ret void26 27; CHECK-LABEL: fn1:28; CHECK: jb29}30