llvm.org GIT mirror llvm / 9a01b51
[X86][AVX] Added zeroall/zeroupper scheduler tests Missing on SandyBridge and Btver2 models git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302804 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 3 years ago
1 changed file(s) with 50 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
28362836 ret <8 x float> %8
28372837 }
28382838
2839 define void @test_zeroall() {
2840 ; SANDY-LABEL: test_zeroall:
2841 ; SANDY: # BB#0:
2842 ; SANDY-NEXT: vzeroall # sched: [?:0.000000e+00]
2843 ; SANDY-NEXT: retq # sched: [5:1.00]
2844 ;
2845 ; HASWELL-LABEL: test_zeroall:
2846 ; HASWELL: # BB#0:
2847 ; HASWELL-NEXT: vzeroall # sched: [1:0.00]
2848 ; HASWELL-NEXT: retq # sched: [1:1.00]
2849 ;
2850 ; BTVER2-LABEL: test_zeroall:
2851 ; BTVER2: # BB#0:
2852 ; BTVER2-NEXT: vzeroall # sched: [?:0.000000e+00]
2853 ; BTVER2-NEXT: retq # sched: [4:1.00]
2854 ;
2855 ; ZNVER1-LABEL: test_zeroall:
2856 ; ZNVER1: # BB#0:
2857 ; ZNVER1-NEXT: vzeroall # sched: [?:0.000000e+00]
2858 ; ZNVER1-NEXT: retq # sched: [4:1.00]
2859 call void @llvm.x86.avx.vzeroall()
2860 ret void
2861 }
2862 declare void @llvm.x86.avx.vzeroall() nounwind
2863
2864 define void @test_zeroupper() {
2865 ; SANDY-LABEL: test_zeroupper:
2866 ; SANDY: # BB#0:
2867 ; SANDY-NEXT: vzeroupper # sched: [?:0.000000e+00]
2868 ; SANDY-NEXT: retq # sched: [5:1.00]
2869 ;
2870 ; HASWELL-LABEL: test_zeroupper:
2871 ; HASWELL: # BB#0:
2872 ; HASWELL-NEXT: vzeroupper # sched: [1:0.00]
2873 ; HASWELL-NEXT: retq # sched: [1:1.00]
2874 ;
2875 ; BTVER2-LABEL: test_zeroupper:
2876 ; BTVER2: # BB#0:
2877 ; BTVER2-NEXT: vzeroupper # sched: [?:0.000000e+00]
2878 ; BTVER2-NEXT: retq # sched: [4:1.00]
2879 ;
2880 ; ZNVER1-LABEL: test_zeroupper:
2881 ; ZNVER1: # BB#0:
2882 ; ZNVER1-NEXT: vzeroupper # sched: [?:0.000000e+00]
2883 ; ZNVER1-NEXT: retq # sched: [4:1.00]
2884 call void @llvm.x86.avx.vzeroupper()
2885 ret void
2886 }
2887 declare void @llvm.x86.avx.vzeroupper() nounwind
2888
28392889 !0 = !{i32 1}