brintos

brintos / llvm-project-archived public Read only

0
0
Text · 10.4 KiB · 1582605 Raw
392 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=pic2; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -relocation-model=static -mips32-function-mask=1010111 -mips-os16 < %s | FileCheck %s -check-prefix=fmask3 4@x = global float 1.500000e+00, align 45@xn = global float -1.900000e+01, align 46@negone = global float -1.000000e+00, align 47@one = global float 1.000000e+00, align 48@xd = global double 0x40048B0A8EA4481E, align 89@xdn = global double 0xC0311F9ADD373963, align 810@negoned = global double -1.000000e+00, align 811@oned = global float 1.000000e+00, align 412@y = common global float 0.000000e+00, align 413@yd = common global double 0.000000e+00, align 814 15; Function Attrs: nounwind16define void @foo1() #0 {17; fmask: .ent foo118; fmask: .set	noreorder19; fmask: .set	nomacro20; fmask: .set	noat21; fmask: .set	at22; fmask: .set	macro23; fmask: .set	reorder24; fmask: .end	foo125entry:26  %0 = load float, ptr @x, align 427  %1 = load float, ptr @one, align 428  %call = call float @copysignf(float %0, float %1) #229  store float %call, ptr @y, align 430  ret void31}32 33; Function Attrs: nounwind readnone34declare float @copysignf(float, float) #135 36; Function Attrs: nounwind37define void @foo2() #0 {38; fmask:	.ent	foo239; fmask:	save	{{.*}}40; fmask:	.end	foo241entry:42  %0 = load float, ptr @x, align 443  %1 = load float, ptr @negone, align 444  %call = call float @copysignf(float %0, float %1) #245  store float %call, ptr @y, align 446  ret void47}48 49; Function Attrs: nounwind50define void @foo3() #0 {51entry:52; fmask: .ent foo353; fmask: .set	noreorder54; fmask: .set	nomacro55; fmask: .set	noat56; fmask: .set	at57; fmask: .set	macro58; fmask: .set	reorder59; fmask: .end	foo360  %0 = load double, ptr @xd, align 861  %1 = load float, ptr @oned, align 462  %conv = fpext float %1 to double63  %call = call double @copysign(double %0, double %conv) #264  store double %call, ptr @yd, align 865  ret void66}67 68; Function Attrs: nounwind readnone69declare double @copysign(double, double) #170 71; Function Attrs: nounwind72define void @foo4() #0 {73entry:74; fmask:	.ent	foo475; fmask:	save	{{.*}}76; fmask:	.end	foo477  %0 = load double, ptr @xd, align 878  %1 = load double, ptr @negoned, align 879  %call = call double @copysign(double %0, double %1) #280  store double %call, ptr @yd, align 881  ret void82}83 84; Function Attrs: nounwind85define void @foo5() #0 {86entry:87  %0 = load float, ptr @xn, align 488  %call = call float @fabsf(float %0) #289  store float %call, ptr @y, align 490  ret void91}92 93; Function Attrs: nounwind readnone94declare float @fabsf(float) #195 96; Function Attrs: nounwind97define void @foo6() #0 {98entry:99  %0 = load double, ptr @xdn, align 8100  %call = call double @fabs(double %0) #2101  store double %call, ptr @yd, align 8102  ret void103}104 105; Function Attrs: nounwind readnone106declare double @fabs(double) #1107 108; Function Attrs: nounwind109define void @foo7() #0 {110entry:111  %0 = load float, ptr @x, align 4112  %call = call float @sinf(float %0) #3113;pic:	lw	${{[0-9]+}}, %call16(sinf)(${{[0-9]+}})114;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})115  store float %call, ptr @y, align 4116  ret void117}118 119; Function Attrs: nounwind120declare float @sinf(float) #0121 122; Function Attrs: nounwind123define void @foo8() #0 {124entry:125  %0 = load double, ptr @xd, align 8126  %call = call double @sin(double %0) #3127;pic:	lw	${{[0-9]+}}, %call16(sin)(${{[0-9]+}})128;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})129  store double %call, ptr @yd, align 8130  ret void131}132 133; Function Attrs: nounwind134declare double @sin(double) #0135 136; Function Attrs: nounwind137define void @foo9() #0 {138entry:139  %0 = load float, ptr @x, align 4140  %call = call float @cosf(float %0) #3141;pic:	lw	${{[0-9]+}}, %call16(cosf)(${{[0-9]+}})142;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})143  store float %call, ptr @y, align 4144  ret void145}146 147; Function Attrs: nounwind148declare float @cosf(float) #0149 150; Function Attrs: nounwind151define void @foo10() #0 {152entry:153  %0 = load double, ptr @xd, align 8154  %call = call double @cos(double %0) #3155;pic:	lw	${{[0-9]+}}, %call16(cos)(${{[0-9]+}})156;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})157  store double %call, ptr @yd, align 8158  ret void159}160 161; Function Attrs: nounwind162declare double @cos(double) #0163 164; Function Attrs: nounwind165define void @foo11() #0 {166entry:167  %0 = load float, ptr @x, align 4168  %call = call float @sqrtf(float %0) #3169;pic:	lw	${{[0-9]+}}, %call16(sqrtf)(${{[0-9]+}})170;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})171  store float %call, ptr @y, align 4172  ret void173}174 175; Function Attrs: nounwind176declare float @sqrtf(float) #0177 178; Function Attrs: nounwind179define void @foo12() #0 {180entry:181  %0 = load double, ptr @xd, align 8182  %call = call double @sqrt(double %0) #3183;pic:	lw	${{[0-9]+}}, %call16(sqrt)(${{[0-9]+}})184;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})185  store double %call, ptr @yd, align 8186  ret void187}188 189; Function Attrs: nounwind190declare double @sqrt(double) #0191 192; Function Attrs: nounwind193define void @foo13() #0 {194entry:195  %0 = load float, ptr @x, align 4196  %call = call float @floorf(float %0) #2197;pic:	lw	${{[0-9]+}}, %call16(floorf)(${{[0-9]+}})198;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})199  store float %call, ptr @y, align 4200  ret void201}202 203; Function Attrs: nounwind readnone204declare float @floorf(float) #1205 206; Function Attrs: nounwind207define void @foo14() #0 {208entry:209  %0 = load double, ptr @xd, align 8210  %call = call double @floor(double %0) #2211;pic:	lw	${{[0-9]+}}, %call16(floor)(${{[0-9]+}})212;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})213  store double %call, ptr @yd, align 8214  ret void215}216 217; Function Attrs: nounwind readnone218declare double @floor(double) #1219 220; Function Attrs: nounwind221define void @foo15() #0 {222entry:223  %0 = load float, ptr @x, align 4224  %call = call float @nearbyintf(float %0) #2225;pic:	lw	${{[0-9]+}}, %call16(nearbyintf)(${{[0-9]+}})226;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})227  store float %call, ptr @y, align 4228  ret void229}230 231; Function Attrs: nounwind readnone232declare float @nearbyintf(float) #1233 234; Function Attrs: nounwind235define void @foo16() #0 {236entry:237  %0 = load double, ptr @xd, align 8238  %call = call double @nearbyint(double %0) #2239;pic:	lw	${{[0-9]+}}, %call16(nearbyint)(${{[0-9]+}})240;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})241  store double %call, ptr @yd, align 8242  ret void243}244 245; Function Attrs: nounwind readnone246declare double @nearbyint(double) #1247 248; Function Attrs: nounwind249define void @foo17() #0 {250entry:251  %0 = load float, ptr @x, align 4252  %call = call float @ceilf(float %0) #2253;pic:	lw	${{[0-9]+}}, %call16(ceilf)(${{[0-9]+}})254;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})255  store float %call, ptr @y, align 4256  ret void257}258 259; Function Attrs: nounwind readnone260declare float @ceilf(float) #1261 262; Function Attrs: nounwind263define void @foo18() #0 {264entry:265  %0 = load double, ptr @xd, align 8266  %call = call double @ceil(double %0) #2267;pic:	lw	${{[0-9]+}}, %call16(ceil)(${{[0-9]+}})268;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})269  store double %call, ptr @yd, align 8270  ret void271}272 273; Function Attrs: nounwind readnone274declare double @ceil(double) #1275 276; Function Attrs: nounwind277define void @foo19() #0 {278entry:279  %0 = load float, ptr @x, align 4280  %call = call float @rintf(float %0) #2281;pic:	lw	${{[0-9]+}}, %call16(rintf)(${{[0-9]+}})282;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})283  store float %call, ptr @y, align 4284  ret void285}286 287; Function Attrs: nounwind readnone288declare float @rintf(float) #1289 290; Function Attrs: nounwind291define void @foo20() #0 {292entry:293  %0 = load double, ptr @xd, align 8294  %call = call double @rint(double %0) #2295;pic:	lw	${{[0-9]+}}, %call16(rint)(${{[0-9]+}})296;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})297  store double %call, ptr @yd, align 8298  ret void299}300 301; Function Attrs: nounwind readnone302declare double @rint(double) #1303 304; Function Attrs: nounwind305define void @foo21() #0 {306entry:307  %0 = load float, ptr @x, align 4308  %call = call float @truncf(float %0) #2309;pic:	lw	${{[0-9]+}}, %call16(truncf)(${{[0-9]+}})310;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})311  store float %call, ptr @y, align 4312  ret void313}314 315; Function Attrs: nounwind readnone316declare float @truncf(float) #1317 318; Function Attrs: nounwind319define void @foo22() #0 {320entry:321  %0 = load double, ptr @xd, align 8322  %call = call double @trunc(double %0) #2323;pic:	lw	${{[0-9]+}}, %call16(trunc)(${{[0-9]+}})324;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})325  store double %call, ptr @yd, align 8326  ret void327}328 329; Function Attrs: nounwind readnone330declare double @trunc(double) #1331 332; Function Attrs: nounwind333define void @foo23() #0 {334entry:335  %0 = load float, ptr @x, align 4336  %call = call float @log2f(float %0) #3337;pic:	lw	${{[0-9]+}}, %call16(log2f)(${{[0-9]+}})338;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})339  store float %call, ptr @y, align 4340  ret void341}342 343; Function Attrs: nounwind344declare float @log2f(float) #0345 346; Function Attrs: nounwind347define void @foo24() #0 {348entry:349  %0 = load double, ptr @xd, align 8350  %call = call double @log2(double %0) #3351;pic:	lw	${{[0-9]+}}, %call16(log2)(${{[0-9]+}})352;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})353  store double %call, ptr @yd, align 8354  ret void355}356 357; Function Attrs: nounwind358declare double @log2(double) #0359 360; Function Attrs: nounwind361define void @foo25() #0 {362entry:363  %0 = load float, ptr @x, align 4364  %call = call float @exp2f(float %0) #3365;pic:	lw	${{[0-9]+}}, %call16(exp2f)(${{[0-9]+}})366;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})367  store float %call, ptr @y, align 4368  ret void369}370 371; Function Attrs: nounwind372declare float @exp2f(float) #0373 374; Function Attrs: nounwind375define void @foo26() #0 {376entry:377  %0 = load double, ptr @xd, align 8378  %call = call double @exp2(double %0) #3379;pic:	lw	${{[0-9]+}}, %call16(exp2)(${{[0-9]+}})380;pic:	lw	${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})381  store double %call, ptr @yd, align 8382  ret void383}384 385; Function Attrs: nounwind386declare double @exp2(double) #0387 388attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="false" }389attributes #1 = { nounwind readnone "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="true" }390attributes #2 = { nounwind readnone }391attributes #3 = { nounwind }392