Home | History | Annotate | Download | only in ssa

Lines Matching refs:fun

13 	fun := makeConstShiftFunc(c, 18, OpLsh64x64, TypeUInt64)
14 checkOpcodeCounts(t, fun.f, map[Op]int{OpAMD64SHLQconst: 1, OpAMD64CMPQconst: 0, OpAMD64ANDQconst: 0})
15 fun.f.Free()
16 fun = makeConstShiftFunc(c, 66, OpLsh64x64, TypeUInt64)
17 checkOpcodeCounts(t, fun.f, map[Op]int{OpAMD64SHLQconst: 0, OpAMD64CMPQconst: 0, OpAMD64ANDQconst: 0})
18 fun.f.Free()
19 fun = makeConstShiftFunc(c, 18, OpRsh64Ux64, TypeUInt64)
20 checkOpcodeCounts(t, fun.f, map[Op]int{OpAMD64SHRQconst: 1, OpAMD64CMPQconst: 0, OpAMD64ANDQconst: 0})
21 fun.f.Free()
22 fun = makeConstShiftFunc(c, 66, OpRsh64Ux64, TypeUInt64)
23 checkOpcodeCounts(t, fun.f, map[Op]int{OpAMD64SHRQconst: 0, OpAMD64CMPQconst: 0, OpAMD64ANDQconst: 0})
24 fun.f.Free()
25 fun = makeConstShiftFunc(c, 18, OpRsh64x64, TypeInt64)
26 checkOpcodeCounts(t, fun.f, map[Op]int{OpAMD64SARQconst: 1, OpAMD64CMPQconst: 0})
27 fun.f.Free()
28 fun = makeConstShiftFunc(c, 66, OpRsh64x64, TypeInt64)
29 checkOpcodeCounts(t, fun.f, map[Op]int{OpAMD64SARQconst: 1, OpAMD64CMPQconst: 0})
30 fun.f.Free()
33 func makeConstShiftFunc(c *Config, amount int64, op Op, typ Type) fun {
35 fun := Fun(c, "entry",
46 Compile(fun.f)
47 return fun