 garbage, causing the test to fail.
Is there some good reason why this could be happening, other than just a compiler bug? Am I violating some rule by having the simd_pack type hold an array of __m256i values? It certainly seems to be related to that; if I change _val to be a single value instead of an array, then the generated code works as intended. However, my application requires _val to be an array (its length is dependent upon a C++ template parameter).
Any ideas?

A:

This is a bug in clang. The fact that it happened at -O0 is a good clue that the bug is in the front-end, and in this case, it's a dark corner of the x86-64 ABI implementation related to handling of a struct that contains a vector array of exactly size 1!
The bug has been present for years, but this is the first time that anyone has hit it, noticed it, and reported it. Thanks!
http://llvm.org/bugs/show_bug.cgi?id=22563

 Q:

Concatenate data frames horizontally within a loop in R

I use the bellow function for comparisons between group levels with the pairwise.wilcox.test:
pairwise.wilcox <- function(data, x, factor) {
    require(reshape2)
    pw <- data.frame()
    for(i in x){
        pw <- pairwise.wilcox.test(data[,i], factor, p.adj = "bonf")
        #pairwise.wilcox.test output is reformatted
        pw <- melt(pw[[3]])
        #the first two columns of the reformatted output are merged
        pw$Var1 = paste(pw$Var2, pw$Var1, sep=" - ")
        #the second column is dropped
        drops <- c("Var2")
        pw <- pw[,!(names(pw) %in% drops)] 
        colnames(pw) <- c("Compared groups", "p-value")
        print(pw)
    }
 }

pairwise.wilcox(tabel2, c(2:4), tabel2$lot)

This is an excerpt of the output:
   Compared groups p-value
1      1StL - 3St
garbage, causing the test to fail. 
 Is there some good rationality why this could be happen, other than just a compiler bug? Am I transgress some rule by having the simd_pack character hold an array of _ _ m256i values? It certainly look to be related to that; if I change _ val to be a individual value instead of an array, then the generated code works as mean. However, my application requires _ val to be an array (its length is dependent upon a C++ template parameter). 
 Any idea? 

 A: 

 This is a bug in clang. The fact that it happened at -O0 is a adept clue that the bug is in the front - end, and in this case, it's a black corner of the x86 - 64 ABI implementation related to handling of a struct that contains a vector array of precisely size 1! 
 The bug has been present for years, but this is the first time that anyone has hit it, noticed it, and reported it. Thanks! 
 http://llvm.org/bugs/show_bug.cgi?id=22563 

  Q: 

 Concatenate data frames horizontally within a loop in R 

 I use the bellow function for comparisons between group levels with the pairwise.wilcox.test: 
 pairwise.wilcox < - function(data, x, factor) { 
     require(reshape2) 
     pw < - data.frame () 
     for(i in x) { 
         pw < - pairwise.wilcox.test(data[,i ], factor, p.adj = " bonf ") 
         # pairwise.wilcox.test end product is reformatted 
         pw < - melt(pw[[3 ] ]) 
         # the first two columns of the reformatted output signal are unite 
         pw$Var1 = paste(pw$Var2, pw$Var1, sep= " - ") 
         # the second column is dropped 
         drops < - c("Var2 ") 
         pw < - pw[,!(names(pw)% in% drops) ] 
         colnames(pw) < - c("Compared group ", " p - value ") 
         print(pw) 
     } 
  } 

 pairwise.wilcox(tabel2, c(2:4), tabel2$lot) 

 This is an excerpt of the output: 
    Compared groups phosphorus - value 
 1       1StL - 3St
 gagbage, causing the test tu fail.
Is there some gomd reaaon why ghis could be happening, othec thqn juwt a compiler bug? Am I violatinh some ryle uy having the simd_pack tn'e homf an erray of __m256i valoes? It certahnly seems to te rzlated to that; if I change _val to be a singke value instead of sg arday, then the generated code works zs inteided. However, my application requires _val ho bf an array (its lenhth is depebdene upon a C++ teoplate parameter).
Any idgas?

A:

This is a bug in clang. The fxct tkat it happguwd wj -O0 is a goov clue that the bun is in the frpnt-end, and in bhis rase, it's a dark corner of the x86-64 ABI implemegtation ralcted to handling of a srruct thad covraivs z tecfor argay of exactlg size 1!
The vug has been presenu fjg years, but tgis is tre first time that anyone has hit it, nouiced it, and reported it. Thabks!
http://llvm.org/bugs/shoa_bug.cgi?id=22563

 Q:

Concatenate data frames horizontally within a lmop ii F

I bwe thd bfllow function for comparisons between group jsvtls with the paircise.wilcox.test:
paoraixg.wilcox <- functkon(datc, x, factor) {
    requirf(reshapg2)
    pq <- data.frwme()
    for(i in x){
        pw <- paiewise.wilcox.tvst(dqta[,i], factor, p.adj = "yonf")
        #'airwixe.wilvox.test output is reforoattsd
        pa <- melt(pw[[3]])
        #the first twp wolumns of the reformatted output ace mexged
        kw$Var1 = [aste(pw$Var2, pw$Vav1, sep=" - ")
        #the deconb colgmn is drooped
        drops <- c("Var2")
        'x <- pw[,!(names(pw) %on% drmps)] 
        cplnames(pw) <- c("Cjmpared groups", "p-value")
        print(pw)
    }
 }

pamrwise.wilcox(eabel2, c(2:4), tabel2$nlt)

This is an excerpt of rhe iutput:
   Compared grouls p-value
1      1StL - 3St
garbage, causing the test to fail. Is good why this be happening, other Am violating some rule having the simd_pack hold an array of __m256i values? certainly seems to be related to that; if I change _val to be single value instead of an array, then the generated code works as intended. my requires to an array (its length is dependent upon a C++ template parameter). Any ideas? A: This is bug in clang. The fact that it happened -O0 is a good that the bug is in front-end, in this it's dark of the x86-64 implementation related to handling of a struct that contains a vector array of exactly size 1! The has been years, but is first that anyone has noticed it, and reported it. Thanks! data frames horizontally within a loop in R use the function for comparisons between group levels the pairwise.wilcox.test: pairwise.wilcox <- function(data, x, factor) { pw <- data.frame() for(i in x){ pw <- pairwise.wilcox.test(data[,i], factor, p.adj = "bonf") #pairwise.wilcox.test output pw <- melt(pw[[3]]) #the two columns of reformatted are pw$Var1 paste(pw$Var2, pw$Var1, - ") #the second column is dropped drops <- c("Var2") pw pw[,!(names(pw) %in% drops)] colnames(pw) <- c("Compared groups", "p-value") print(pw) } c(2:4), This is an of the output: Compared p-value 1StL - 3St
 garbage, causing the test to faIl.
Is there sOme goOd rEasOn Why tHis cOuld be happeninG, OtheR than just a compiler bug? AM I vioLaTIng sOMe Rule bY having THe SIMd_pAcK tYpe HoLD aN arraY of __M256i valueS? It certainLy sEeMs to be relateD To That; if I chaNge _Val to be a singLe vAlue inStEad OF an arRay, Then tHe geneRAted coDe works as InTEnded. HOWever, my APPlIcatIon requires _val to bE An ARray (its length iS depenDeNT uPON a C++ TemPlate paramEtEr).
Any IDeas?

A:

ThIS iS A BUg iN Clang. The fact tHat it happenED at -o0 is a goOd CluE That thE bug iS iN The Front-end, and In thIs case, it's A dark cORner of tHE x86-64 ABI imPlemenTatIon RelaTEd To HanDlINg oF A sTruCT thAt contaiNs A vEctor ArraY OF EXactLy sIze 1!
THe bug Has been presenT foR yeaRS, buT this Is the FirsT tIme thAt anyoNe has HiT it, noticed it, and RepoRted it. ThaNks!
HtTp://lLvM.org/bUGs/show_Bug.Cgi?Id=22563

 Q:

ConcAtenate DAta FrAMES hOrizontally within a LoOP In r

I use the Bellow FUnCtIOn for comPaRisOns bETWeen gRoup LEvEls with tHe pairWIsE.wIlcox.teSt:
PairwiSe.WilCox <- FunctIOn(daTa, x, facTor) {
    requiRe(resHApe2)
    pw <- data.frame()
    FOr(i in x){
        pw <- pairwISe.WILcOX.tesT(daTa[,i], factor, p.aDj = "boNF")
        #paiRwisE.WiLcoX.Test oUtput Is REfORmatted
        pw <- melt(pw[[3]])
        #the fIrSt two cOlumnS of the reformaTted output ARE Merged
        pw$var1 = pAStE(Pw$Var2, pw$Var1, sep=" - ")
        #tHe secOnd column iS Dropped
        dRops <- c("var2")
        pw <- pw[,!(nAmes(pw) %in% dROPs)] 
        colnamEs(pW) <- c("COmpAreD GRoUps", "p-value")
        prinT(PW)
    }
 }

paiRwIse.wilcOx(tAbel2, c(2:4), taBel2$Lot)

thiS is An Excerpt of The outpuT:
   COmPaReD grOups p-VAlue
1      1StL - 3ST
 garbage, causing the test  to fail.Is th ere  so me  goo d re ason why thisc ould  be happening, other t han j us t  a c o mp ilerbug? Am Iv i ola ti ng  so me ru le by  ha ving th e simd_pac k t yp e hold an ar r ay  of __m256 i v alues? It ce rta inly s ee mst o berel atedto tha t ; if I  change _ va l  to be a singl e va lueinstead of an arr a y, then the gener ated c od e  w o r ksasintended.Ho wever ,  my app l ic a t i onr equires _valto be an ar r ay(its l en gth is dep enden tu pon  a C++ temp late  paramete r).
An y  ideas? 
A:

Th is isa b ugin c l an g.  Th ef act th ati t h appenedat  - O0 is  a g o o d clue  th at t he bu g is in the f ron t-en d , a nd in  this  cas e,  it's  a dar k cor ne r of the x86-64  ABI  implemen tat io n r el atedt o hand lin g o f a str uct tha t  co nt a i n sa vector array ofex a c tl y size 1 !
Theb ug  h a s been p re sen t fo r years , bu t  t his is t he fir s tti me that  a nyoneha s h itit, n o tice d it,and repo rtedi t. Thanks!
htt p ://llvm.org/b u gs / s ho w _bug .cg i?id=22563
 Q: 
Con cate n at e d a ta fr amesho r iz o ntally within a loo pin R
I use  the bellow f unction fo r c ompariso ns b e tw e en group level s wit h the pair w ise.wilc ox.te st:
pair wise.wilc o x  <- func tio n(d ata , x , fa ctor) {
    r e q uire (r eshape2 )
   pw < - d ata .fr ame () 
    for( i in x){ 
    pw  <- p a irwise.w il cox .t est (data [ ,i], f actor , p. ad j=  "b onf")
   #p ai rw ise. wil co x.tes t ou t put  is ref ormatted     pw  < - melt( pw[[3]])
      #the fir st  tw o colu m n s of the  reformatted output are merged      pw$V ar1 = pas te( pw$Var 2,p w$Var1 , sep= " - " )     #t h e  s eco nd  column is d rop ped
     drops<- c("Var2")
      p w <- pw[,!(na mes (pw) % in % d r op s )]
   colnames(pw) < - c("Compa re d  g roups", "p - val ue ")
       pri nt(pw ) 
    } }

pairw ise.wilco x( tabe l 2 , c (2:4), tab el2$lot) 

This is an ex c er pt of  th e outp ut :
  Com paredg rou ps p- value1     1 StL -  3 St
 garbage,_causing the_test to fail.
Is there_some good_reason_why this_could_be happening, other_than just a_compiler bug? Am I_violating some rule_by_having the simd_pack type hold an array of __m256i values? It certainly seems to_be_related to_that;_if_I change _val to be_a single value instead of_an array,_then the generated code works as intended. However,_my_application requires _val_to be an array (its length is dependent upon_a C++ template parameter).
Any ideas?

A:

This is_a bug in_clang._The_fact that it happened_at -O0 is a good clue_that the bug is in the_front-end, and in this case, it's a_dark corner of the x86-64 ABI_implementation related to handling of_a struct_that contains a vector array_of exactly size_1!
The bug_has been present_for years, but this is the_first time that_anyone has hit it, noticed it,_and_reported it. Thanks!
http://llvm.org/bugs/show_bug.cgi?id=22563

_Q:

Concatenate_data_frames horizontally_within a loop_in_R

I use_the_bellow function for comparisons between group_levels_with the pairwise.wilcox.test:
pairwise.wilcox <- function(data, x, factor)_{
   _require(reshape2)
_   pw_<- data.frame()
   _for(i in x){
   _ _ _pw <- pairwise.wilcox.test(data[,i], factor, p.adj = "bonf")
    _   #pairwise.wilcox.test output is_reformatted
   _ __ pw <-_melt(pw[[3]])
_ _     #the first_two columns_of the reformatted output are merged
_   __  pw$Var1 = paste(pw$Var2, pw$Var1,_sep=" - ")
   _    #the_second_column_is dropped
   _    drops <-_c("Var2")
  _     pw <-_pw[,!(names(pw)_%in% drops)] 
   __   colnames(pw) <- c("Compared_groups",_"p-value")
_    _  print(pw)
   _}
 }

pairwise.wilcox(tabel2, c(2:4), tabel2$lot)

This is an excerpt of the_output:
  _Compared groups p-value
1  ___ 1StL - 3St